set -fPIC

This commit is contained in:
Christian Rauch 2021-09-10 20:12:51 +01:00
parent 6308112e54
commit 52e9b62da3

View File

@ -71,6 +71,9 @@ set(backport-msvc-runtime $<VERSION_LESS:${CMAKE_VERSION},3.15>)
add_library(yaml-cpp ${yaml-cpp-type} "")
add_library(yaml-cpp::yaml-cpp ALIAS yaml-cpp)
set_property(TARGET yaml-cpp
PROPERTY POSITION_INDEPENDENT_CODE ON)
set_property(TARGET yaml-cpp
PROPERTY
MSVC_RUNTIME_LIBRARY ${CMAKE_MSVC_RUNTIME_LIBRARY})