Add POSITION_INDEPENDENT_CODE to CapnC::Runtime

This commit is contained in:
Jonah Beckford 2023-08-24 22:45:17 -07:00
parent f703bd962c
commit e4b5a71a46
2 changed files with 2 additions and 1 deletions

View file

@ -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)

View file

@ -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