From e4b5a71a46ad0d48e2e78f03b43e192f4adba492 Mon Sep 17 00:00:00 2001 From: Jonah Beckford <9566106-jonahbeckford@users.noreply.gitlab.com> Date: Thu, 24 Aug 2023 22:45:17 -0700 Subject: [PATCH] Add POSITION_INDEPENDENT_CODE to CapnC::Runtime --- CHANGES.md | 2 +- CMakeLists.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 7807735..35a5d52 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -10,7 +10,7 @@ ASAN (not a false positive) - Wrap macro parameters in the `capnp_use(x)` macro. Passes clang-tidy (not a false positive) - +- Add POSITION_INDEPENDENT_CODE to CapnC::Runtime ## 0.3 (632f0d73a1f4a03026b5e4727386b9fe3ec6e00e) diff --git a/CMakeLists.txt b/CMakeLists.txt index a0b4094..16cb358 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,6 +60,7 @@ add_library(CapnC_Runtime ${linkage} add_library(CapnC::Runtime ALIAS CapnC_Runtime) set_target_properties(CapnC_Runtime PROPERTIES EXPORT_NAME Runtime + POSITION_INDEPENDENT_CODE ON WINDOWS_EXPORT_ALL_SYMBOLS ON) target_include_directories(CapnC_Runtime PUBLIC