summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-02-11 12:44:31 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-02-11 12:44:40 (GMT)
commitd9ddb30e92ce1c9c98ce6603660b631cd42bfed0 (patch)
tree360ad9e9ed2493a8d4ed552088cce609c2cbc109 /Tests
parent56c2eab1e23fa92594bf0696ea351d77ae3aebe8 (diff)
parentf87e724e8c193df3b9b30ddd0b9d2ec7c6ac2ba7 (diff)
downloadCMake-d9ddb30e92ce1c9c98ce6603660b631cd42bfed0.zip
CMake-d9ddb30e92ce1c9c98ce6603660b631cd42bfed0.tar.gz
CMake-d9ddb30e92ce1c9c98ce6603660b631cd42bfed0.tar.bz2
Merge topic 'fix-exclude-dir-with-iface'
f87e724e8c Fix EXCLUDE_FROM_ALL on directory with an interface library Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2937
Diffstat (limited to 'Tests')
-rw-r--r--Tests/InterfaceLibrary/CMakeLists.txt1
-rw-r--r--Tests/InterfaceLibrary/excluded/CMakeLists.txt1
2 files changed, 2 insertions, 0 deletions
diff --git a/Tests/InterfaceLibrary/CMakeLists.txt b/Tests/InterfaceLibrary/CMakeLists.txt
index 6aae09a..954c02d 100644
--- a/Tests/InterfaceLibrary/CMakeLists.txt
+++ b/Tests/InterfaceLibrary/CMakeLists.txt
@@ -47,6 +47,7 @@ target_link_libraries(InterfaceLibrary
add_dependencies(InterfaceLibrary item_fake_tgt)
add_subdirectory(libsdir)
+add_subdirectory(excluded EXCLUDE_FROM_ALL)
add_executable(sharedlibtestexe sharedlibtestexe.cpp)
target_link_libraries(sharedlibtestexe shared_iface imported::iface)
diff --git a/Tests/InterfaceLibrary/excluded/CMakeLists.txt b/Tests/InterfaceLibrary/excluded/CMakeLists.txt
new file mode 100644
index 0000000..69a6807
--- /dev/null
+++ b/Tests/InterfaceLibrary/excluded/CMakeLists.txt
@@ -0,0 +1 @@
+add_library(excluded_iface INTERFACE)