diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-12-31 13:52:07 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-01-06 16:25:10 (GMT) |
commit | 9eb06d0dde52203d3f8ac91ea9a1c5396a09f8af (patch) | |
tree | 149b1c4230b12fc9848cdf99411f0274cb334c1c /Tests/InterfaceLibrary | |
parent | 10d65d50195e0183120e102c043cc9c96a16a36b (diff) | |
download | CMake-9eb06d0dde52203d3f8ac91ea9a1c5396a09f8af.zip CMake-9eb06d0dde52203d3f8ac91ea9a1c5396a09f8af.tar.gz CMake-9eb06d0dde52203d3f8ac91ea9a1c5396a09f8af.tar.bz2 |
add_library: Disallow invalid signatures for INTERFACE_LIBRARY.
Document the valid signatures. Add a test for the IMPORTED GLOBAL
signature.
Diffstat (limited to 'Tests/InterfaceLibrary')
-rw-r--r-- | Tests/InterfaceLibrary/CMakeLists.txt | 2 | ||||
-rw-r--r-- | Tests/InterfaceLibrary/libsdir/CMakeLists.txt | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Tests/InterfaceLibrary/CMakeLists.txt b/Tests/InterfaceLibrary/CMakeLists.txt index 396a84a..b396eb6 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 6999646..4e529df 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) |