summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/PositionIndependentCode/Debug.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-12-05 12:24:46 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-12-08 06:03:29 (GMT)
commit2e60b5fcf7929232c2e731f21e1ab9a889949fa3 (patch)
tree48025bae9d4f68cc8f003fd693d907266b10c6ba /Tests/RunCMake/PositionIndependentCode/Debug.cmake
parent7974dbb0ffe9c4abb314ec6baff4f0af1d99e5f5 (diff)
downloadCMake-2e60b5fcf7929232c2e731f21e1ab9a889949fa3.zip
CMake-2e60b5fcf7929232c2e731f21e1ab9a889949fa3.tar.gz
CMake-2e60b5fcf7929232c2e731f21e1ab9a889949fa3.tar.bz2
cmTarget: Report origin of COMPATIBLE_INTERFACE properties.
Diffstat (limited to 'Tests/RunCMake/PositionIndependentCode/Debug.cmake')
-rw-r--r--Tests/RunCMake/PositionIndependentCode/Debug.cmake8
1 files changed, 8 insertions, 0 deletions
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)