diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-12-05 12:24:46 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-12-08 06:03:29 (GMT) |
commit | 2e60b5fcf7929232c2e731f21e1ab9a889949fa3 (patch) | |
tree | 48025bae9d4f68cc8f003fd693d907266b10c6ba /Tests/RunCMake/PositionIndependentCode | |
parent | 7974dbb0ffe9c4abb314ec6baff4f0af1d99e5f5 (diff) | |
download | CMake-2e60b5fcf7929232c2e731f21e1ab9a889949fa3.zip CMake-2e60b5fcf7929232c2e731f21e1ab9a889949fa3.tar.gz CMake-2e60b5fcf7929232c2e731f21e1ab9a889949fa3.tar.bz2 |
cmTarget: Report origin of COMPATIBLE_INTERFACE properties.
Diffstat (limited to 'Tests/RunCMake/PositionIndependentCode')
4 files changed, 16 insertions, 0 deletions
diff --git a/Tests/RunCMake/PositionIndependentCode/Debug-result.txt b/Tests/RunCMake/PositionIndependentCode/Debug-result.txt new file mode 100644 index 0000000..573541a --- /dev/null +++ b/Tests/RunCMake/PositionIndependentCode/Debug-result.txt @@ -0,0 +1 @@ +0 diff --git a/Tests/RunCMake/PositionIndependentCode/Debug-stderr.txt b/Tests/RunCMake/PositionIndependentCode/Debug-stderr.txt new file mode 100644 index 0000000..774445b --- /dev/null +++ b/Tests/RunCMake/PositionIndependentCode/Debug-stderr.txt @@ -0,0 +1,6 @@ +CMake Debug Log: + Boolean compatibility of property "POSITION_INDEPENDENT_CODE" for target + "foo" \(result: "TRUE"\): + + \* Target "foo" has property content "TRUE" + \* Target "iface" property value "TRUE" \(Agree\) diff --git a/Tests/RunCMake/PositionIndependentCode/Debug.cmake b/Tests/RunCMake/PositionIndependentCode/Debug.cmake new file mode 100644 index 0000000..4a8fbac --- /dev/null +++ b/Tests/RunCMake/PositionIndependentCode/Debug.cmake @@ -0,0 +1,8 @@ + +add_library(iface INTERFACE) +set_property(TARGET iface PROPERTY INTERFACE_POSITION_INDEPENDENT_CODE ON) + +set(CMAKE_DEBUG_TARGET_PROPERTIES POSITION_INDEPENDENT_CODE) +add_library(foo main.cpp) +target_link_libraries(foo iface) +set_property(TARGET foo PROPERTY POSITION_INDEPENDENT_CODE ON) diff --git a/Tests/RunCMake/PositionIndependentCode/RunCMakeTest.cmake b/Tests/RunCMake/PositionIndependentCode/RunCMakeTest.cmake index 3a2009b..6a67e3c 100644 --- a/Tests/RunCMake/PositionIndependentCode/RunCMakeTest.cmake +++ b/Tests/RunCMake/PositionIndependentCode/RunCMakeTest.cmake @@ -6,3 +6,4 @@ run_cmake(Conflict3) run_cmake(Conflict4) run_cmake(Conflict5) run_cmake(Conflict6) +run_cmake(Debug) |