From 9eb06d0dde52203d3f8ac91ea9a1c5396a09f8af Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 31 Dec 2013 14:52:07 +0100 Subject: add_library: Disallow invalid signatures for INTERFACE_LIBRARY. Document the valid signatures. Add a test for the IMPORTED GLOBAL signature. --- Tests/InterfaceLibrary/CMakeLists.txt | 2 +- Tests/InterfaceLibrary/libsdir/CMakeLists.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'Tests/InterfaceLibrary') diff --git a/Tests/InterfaceLibrary/CMakeLists.txt b/Tests/InterfaceLibrary/CMakeLists.txt index 396a84af95..b396eb6333 100644 --- a/Tests/InterfaceLibrary/CMakeLists.txt +++ b/Tests/InterfaceLibrary/CMakeLists.txt @@ -14,7 +14,7 @@ target_link_libraries(InterfaceLibrary iface_nodepends headeriface) add_subdirectory(libsdir) add_executable(sharedlibtestexe sharedlibtestexe.cpp) -target_link_libraries(sharedlibtestexe shared_iface) +target_link_libraries(sharedlibtestexe shared_iface imported::iface) add_library(broken EXCLUDE_FROM_ALL broken.cpp) diff --git a/Tests/InterfaceLibrary/libsdir/CMakeLists.txt b/Tests/InterfaceLibrary/libsdir/CMakeLists.txt index 6999646561..4e529dfb11 100644 --- a/Tests/InterfaceLibrary/libsdir/CMakeLists.txt +++ b/Tests/InterfaceLibrary/libsdir/CMakeLists.txt @@ -24,3 +24,5 @@ target_compile_definitions(shareddependlib add_library(shared_iface INTERFACE) target_link_libraries(shared_iface INTERFACE sharedlib) + +add_library(imported::iface INTERFACE IMPORTED GLOBAL) -- cgit v1.2.1