diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-05-06 16:10:55 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-05-06 16:11:56 (GMT) |
commit | 20104ab2d82d6cf0aecbc8ea690465d08719fbe7 (patch) | |
tree | 46b85301c6c72dab0cb3fd2f1691ae24303dcf01 /Tests | |
parent | dea1df4e5e05b8ba3de5099741a50cdea384f88e (diff) | |
download | CMake-20104ab2d82d6cf0aecbc8ea690465d08719fbe7.zip CMake-20104ab2d82d6cf0aecbc8ea690465d08719fbe7.tar.gz CMake-20104ab2d82d6cf0aecbc8ea690465d08719fbe7.tar.bz2 |
Test transitive includes from setting the LINK_LIBRARIES property.
Commit b8259c3d (Centralize maintenance of usage requirement include
directories, 2013-04-29) changed the handling of the property.
Previously setting the property directly instead of via
target_link_libraries would not result in transitive include
directory handling.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/include_directories/DebugIncludes-stderr.txt | 9 | ||||
-rw-r--r-- | Tests/RunCMake/include_directories/DebugIncludes.cmake | 8 |
2 files changed, 17 insertions, 0 deletions
diff --git a/Tests/RunCMake/include_directories/DebugIncludes-stderr.txt b/Tests/RunCMake/include_directories/DebugIncludes-stderr.txt index 63aec90..71e6456 100644 --- a/Tests/RunCMake/include_directories/DebugIncludes-stderr.txt +++ b/Tests/RunCMake/include_directories/DebugIncludes-stderr.txt @@ -42,3 +42,12 @@ CMake Debug Log at DebugIncludes.cmake:30 \(target_link_libraries\): Call Stack \(most recent call first\): CMakeLists.txt:3 \(include\) ++ +CMake Debug Log at DebugIncludes.cmake:55 \(set_property\): + Used includes for target lll: + + \* .*/Tests/RunCMake/include_directories/nine + \* .*/Tests/RunCMake/include_directories/ten + +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/include_directories/DebugIncludes.cmake b/Tests/RunCMake/include_directories/DebugIncludes.cmake index de36899..bbc9e46 100644 --- a/Tests/RunCMake/include_directories/DebugIncludes.cmake +++ b/Tests/RunCMake/include_directories/DebugIncludes.cmake @@ -45,3 +45,11 @@ function(some_function) endfunction() some_function() + +add_library(bar "${CMAKE_CURRENT_BINARY_DIR}/DebugIncludes.cpp") +target_include_directories(bar + INTERFACE + "${CMAKE_CURRENT_SOURCE_DIR}/nine" + "${CMAKE_CURRENT_SOURCE_DIR}/ten" +) +set_property(TARGET lll APPEND PROPERTY LINK_LIBRARIES bar) |