summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/PositionIndependentCode/Conflict6.cmake
blob: 7ea7c5f731dbbaed63c1e62b0fd672d51adc6a39 (plain)
1
2
3
4
5
6
7
8

add_library(picoff INTERFACE)

add_library(picon INTERFACE)
set_property(TARGET picon PROPERTY INTERFACE_POSITION_INDEPENDENT_CODE ON)

add_executable(conflict "main.cpp")
target_link_libraries(conflict picon $<$<NOT:$<BOOL:$<TARGET_PROPERTY:POSITION_INDEPENDENT_CODE>>>:picoff>)