Skip to content

Commit aa2e090

Browse files
authored
Add POSITION_INDEPENDENT_CODE option
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
1 parent 53a30c6 commit aa2e090

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ set_target_properties(pugixml-shared pugixml-static pugixml
8585
PROPERTIES
8686
MSVC_RUNTIME_LIBRARY ${CMAKE_MSVC_RUNTIME_LIBRARY}
8787
EXCLUDE_FROM_ALL ON
88+
POSITION_INDEPENDENT_CODE ON
8889
SOVERSION ${PROJECT_VERSION_MAJOR}
8990
VERSION ${PROJECT_VERSION})
9091

0 commit comments

Comments
 (0)