summaryrefslogtreecommitdiff
path: root/Tests/CMakeCommands
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-05-06 18:39:48 +0200
committerBrad King <brad.king@kitware.com>2013-05-16 14:31:00 -0400
commit88308bc2f2d906dc1ffd6b18e6a29137232d6e59 (patch)
treee24bdc778bdedbc46ceccbbee3d7fc82afaac6b6 /Tests/CMakeCommands
parent20104ab2d82d6cf0aecbc8ea690465d08719fbe7 (diff)
downloadcmake-88308bc2f2d906dc1ffd6b18e6a29137232d6e59.tar.gz
Test that linking using the debug keyword to tll works.
Diffstat (limited to 'Tests/CMakeCommands')
-rw-r--r--Tests/CMakeCommands/target_link_libraries/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/CMakeCommands/target_link_libraries/CMakeLists.txt b/Tests/CMakeCommands/target_link_libraries/CMakeLists.txt
index 388164455a..b003a1bb0b 100644
--- a/Tests/CMakeCommands/target_link_libraries/CMakeLists.txt
+++ b/Tests/CMakeCommands/target_link_libraries/CMakeLists.txt
@@ -114,3 +114,11 @@ endif()
# shortcutting of the evaluation by returning an empty string.
set(_exe_test $<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>)
target_link_libraries(targetC $<$<AND:${_exe_test},${_exe_test}>:depG>)
+
+add_library(libConsumer empty.cpp)
+# This line causes $<$<CONFIG:Debug>:depA> to be used when
+# determining the include directories for libConsumer based on the
+# interface properties of its LINK_LIBRARIES. Because the above expression
+# evaluates to the empty string in non-Debug cases, ensure that that causes
+# no problems.
+target_link_libraries(libConsumer debug depA)