summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/PositionIndependentCode/Conflict3.cmake
blob: bf669bf4fc882bd402d65e8c179b4061c1adb4df (plain)
1
2
3
4
5
6
7
8
9
10
11
12

add_library(picoff UNKNOWN IMPORTED)

add_library(picon UNKNOWN IMPORTED)
set_property(TARGET picon PROPERTY INTERFACE_POSITION_INDEPENDENT_CODE ON)

add_executable(conflict "main.cpp")
target_link_libraries(conflict picon)
set_property(TARGET conflict APPEND PROPERTY
  LINK_LIBRARIES
    $<$<NOT:$<BOOL:$<TARGET_PROPERTY:POSITION_INDEPENDENT_CODE>>>:picoff>
)