diff options
author | Brad King <brad.king@kitware.com> | 2013-01-10 15:22:52 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-01-10 15:22:52 (GMT) |
commit | 378899ce8744c2e2b43d0859234eea714dcef368 (patch) | |
tree | 9419bbdbfa1ca672a06219f61cfe232c25b73b77 /Tests/RunCMake/PositionIndependentCode/Conflict2.cmake | |
parent | 325e92fa22cb20a3d4bccbf1f663c28b34f8b04c (diff) | |
parent | 3581b96caa1d7bd6c02e85baf72ce28b5128e5e7 (diff) | |
download | CMake-378899ce8744c2e2b43d0859234eea714dcef368.zip CMake-378899ce8744c2e2b43d0859234eea714dcef368.tar.gz CMake-378899ce8744c2e2b43d0859234eea714dcef368.tar.bz2 |
Merge topic 'INTERFACE_POSITION_INDEPENDENT_CODE'
3581b96 Process the INTERFACE_PIC property from linked dependencies
042ecf0 Add API to calculate link-interface-dependent bool properties or error.
bf5ece5 Keep track of properties used to determine linker libraries.
Diffstat (limited to 'Tests/RunCMake/PositionIndependentCode/Conflict2.cmake')
-rw-r--r-- | Tests/RunCMake/PositionIndependentCode/Conflict2.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/PositionIndependentCode/Conflict2.cmake b/Tests/RunCMake/PositionIndependentCode/Conflict2.cmake new file mode 100644 index 0000000..215d08d --- /dev/null +++ b/Tests/RunCMake/PositionIndependentCode/Conflict2.cmake @@ -0,0 +1,9 @@ + +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) |