summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/PositionIndependentCode/Conflict1.cmake
blob: 242bec37a5f56e712aa3505e620c0ad39fbabd75 (plain)
1
2
3
4
5
6
7

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

add_executable(conflict "main.cpp")
set_property(TARGET conflict PROPERTY POSITION_INDEPENDENT_CODE OFF)
target_link_libraries(conflict piciface)