summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeCommands
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-11-26 11:30:00 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-01-08 17:58:18 (GMT)
commit9cfe4f1b769597bd9ba179eba46572a9df27f64c (patch)
tree8b742d1a7064d31bc9e9add371798d1cfaf086ca /Tests/CMakeCommands
parent97758f29206a172524edd144e588558bb4a83700 (diff)
downloadCMake-9cfe4f1b769597bd9ba179eba46572a9df27f64c.zip
CMake-9cfe4f1b769597bd9ba179eba46572a9df27f64c.tar.gz
CMake-9cfe4f1b769597bd9ba179eba46572a9df27f64c.tar.bz2
Allow target_link_libraries with IMPORTED targets.
This makes it possible to use: target_link_libraries(foo LINK_INTERFACE_LIBRARIES bar) where foo is an IMPORTED target. Other tll() signatures are not allowed.
Diffstat (limited to 'Tests/CMakeCommands')
-rw-r--r--Tests/CMakeCommands/target_link_libraries/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/CMakeCommands/target_link_libraries/CMakeLists.txt b/Tests/CMakeCommands/target_link_libraries/CMakeLists.txt
index 60b36fc..e586c28 100644
--- a/Tests/CMakeCommands/target_link_libraries/CMakeLists.txt
+++ b/Tests/CMakeCommands/target_link_libraries/CMakeLists.txt
@@ -29,6 +29,9 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
add_library(depA SHARED depA.cpp)
generate_export_header(depA)
+add_library(importedlib UNKNOWN IMPORTED)
+target_link_libraries(importedlib LINK_INTERFACE_LIBRARIES depA)
+
add_library(depB SHARED depB.cpp)
generate_export_header(depB)