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