Skip to content

Commit

Permalink
Add POSITION_INDEPENDENT_CODE option
Browse files Browse the repository at this point in the history
Allow to use the static library in other dynamic librairies. This is a standard cmake option https://cmake.org/cmake/help/v3.11/prop_tgt/POSITION_INDEPENDENT_CODE.html#prop_tgt:POSITION_INDEPENDENT_CODE
  • Loading branch information
BotellaA authored Dec 6, 2019
1 parent 53a30c6 commit aa2e090
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -85,6 +85,7 @@ set_target_properties(pugixml-shared pugixml-static pugixml
PROPERTIES
MSVC_RUNTIME_LIBRARY ${CMAKE_MSVC_RUNTIME_LIBRARY}
EXCLUDE_FROM_ALL ON
POSITION_INDEPENDENT_CODE ON
SOVERSION ${PROJECT_VERSION_MAJOR}
VERSION ${PROJECT_VERSION})

0 comments on commit aa2e090

Please sign in to comment.