From 88308bc2f2d906dc1ffd6b18e6a29137232d6e59 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Mon, 6 May 2013 18:39:48 +0200 Subject: Test that linking using the debug keyword to tll works. --- Tests/CMakeCommands/target_link_libraries/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Tests/CMakeCommands/target_link_libraries/CMakeLists.txt b/Tests/CMakeCommands/target_link_libraries/CMakeLists.txt index 3881644..b003a1b 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 $,EXECUTABLE>) target_link_libraries(targetC $<$:depG>) + +add_library(libConsumer empty.cpp) +# This line causes $<$: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) -- cgit v0.12