CMake/Tests/RunCMake/PositionIndependentCode/Conflict2.cmake

10 lines
309 B
CMake
Raw Normal View History

add_library(picon UNKNOWN IMPORTED)
set_property(TARGET picon PROPERTY INTERFACE_POSITION_INDEPENDENT_CODE ON)
add_library(picoff UNKNOWN IMPORTED)
set_property(TARGET picoff PROPERTY INTERFACE_POSITION_INDEPENDENT_CODE OFF)
add_executable(conflict "main.cpp")
target_link_libraries(conflict picon picoff)