Merge pull request #316 from BotellaA/patch-1

Add POSITION_INDEPENDENT_CODE option
This commit is contained in:
Arseny Kapoulkine 2019-12-20 08:13:28 -08:00 committed by GitHub
commit 41b6ff21c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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