- Commit
- f474ac349069ad5c07050a54fbd0a10262acd23c
- Parent
- 4b172b6be03de83157d3e2aab07efe40de8ee736
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Set POSITION_INDEPENDENT_CODE ON for static library.
See discussion in #39.
My personal build of CMark ✏️
Set POSITION_INDEPENDENT_CODE ON for static library.
See discussion in #39.
1 file changed, 2 insertions, 1 deletion
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/CMakeLists.txt | 3 | 2 | 1 |
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt @@ -88,7 +88,8 @@ set_target_properties(${LIBRARY} PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH} VERSION ${PROJECT_VERSION}) set_target_properties(${STATICLIBRARY} PROPERTIES - COMPILE_FLAGS -DCMARK_STATIC_DEFINE) + COMPILE_FLAGS -DCMARK_STATIC_DEFINE + POSITION_INDEPENDENT_CODE ON) if (MSVC) set_target_properties(${STATICLIBRARY} PROPERTIES