"...composable_kernel.git" did not exist on "d443a7a675b1c84a88e15e9fd6cce8d30f76f0d1"
Unverified Commit cdf89fa3 authored by Christian Rauch's avatar Christian Rauch Committed by GitHub
Browse files

set POSITION_INDEPENDENT_CODE if BUILD_SHARED_LIBS=OFF (#1076)

parent f8e1a7be
...@@ -80,6 +80,10 @@ set_property(TARGET yaml-cpp ...@@ -80,6 +80,10 @@ set_property(TARGET yaml-cpp
PROPERTY PROPERTY
CXX_STANDARD_REQUIRED ON) CXX_STANDARD_REQUIRED ON)
if (NOT YAML_BUILD_SHARED_LIBS)
set_property(TARGET yaml-cpp PROPERTY POSITION_INDEPENDENT_CODE ON)
endif()
target_include_directories(yaml-cpp target_include_directories(yaml-cpp
PUBLIC PUBLIC
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include> $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment