Test that linking using the debug keyword to tll works.

This commit is contained in:
Stephen Kelly 2013-05-06 18:39:48 +02:00 committed by Brad King
parent 20104ab2d8
commit 88308bc2f2
1 changed files with 8 additions and 0 deletions

View File

@ -114,3 +114,11 @@ endif()
# shortcutting of the evaluation by returning an empty string. # shortcutting of the evaluation by returning an empty string.
set(_exe_test $<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>) set(_exe_test $<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>)
target_link_libraries(targetC $<$<AND:${_exe_test},${_exe_test}>:depG>) 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)