Add Position-Independed Code option for static build
This commit is contained in:
parent
e584ea337e
commit
952bcc7e02
@ -41,6 +41,7 @@ if(BUILD_SHARED_LIBS)
|
|||||||
add_library(pugixml SHARED ${HEADERS} ${SOURCES})
|
add_library(pugixml SHARED ${HEADERS} ${SOURCES})
|
||||||
else()
|
else()
|
||||||
add_library(pugixml STATIC ${HEADERS} ${SOURCES})
|
add_library(pugixml STATIC ${HEADERS} ${SOURCES})
|
||||||
|
set_property(TARGET pugixml PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Export symbols for shared library builds
|
# Export symbols for shared library builds
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user