summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-02-18 13:57:25 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-02-18 13:57:31 (GMT)
commitae5f8684f93483baf875eedf5e545c29c68a0d97 (patch)
tree183bb7e90aa5c85d78ffb6a03c15fe4162293ef1 /Tests
parenta99c73852e9e0fb87c3adb183596419542c0918e (diff)
parent058b8a0bfb722b3a75ca051c0e1f7b1261643815 (diff)
downloadCMake-ae5f8684f93483baf875eedf5e545c29c68a0d97.zip
CMake-ae5f8684f93483baf875eedf5e545c29c68a0d97.tar.gz
CMake-ae5f8684f93483baf875eedf5e545c29c68a0d97.tar.bz2
Merge topic 'file-set-no-exist' into release-3.23
058b8a0bfb install(): Properly ignore FILE_SETs that don't exist Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7000
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/target_sources/FileSetNoExistInstall.cmake4
-rw-r--r--Tests/RunCMake/target_sources/RunCMakeTest.cmake1
2 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/target_sources/FileSetNoExistInstall.cmake b/Tests/RunCMake/target_sources/FileSetNoExistInstall.cmake
new file mode 100644
index 0000000..a8b4b94
--- /dev/null
+++ b/Tests/RunCMake/target_sources/FileSetNoExistInstall.cmake
@@ -0,0 +1,4 @@
+enable_language(C)
+
+add_library(lib1 STATIC empty.c)
+install(TARGETS lib1 FILE_SET a)
diff --git a/Tests/RunCMake/target_sources/RunCMakeTest.cmake b/Tests/RunCMake/target_sources/RunCMakeTest.cmake
index 9828fa2..171de60 100644
--- a/Tests/RunCMake/target_sources/RunCMakeTest.cmake
+++ b/Tests/RunCMake/target_sources/RunCMakeTest.cmake
@@ -36,6 +36,7 @@ run_cmake(FileSetInstallMissingSetsInterface)
run_cmake(FileSetNoScope)
run_cmake(FileSetNoExistPrivate)
run_cmake(FileSetNoExistInterface)
+run_cmake(FileSetNoExistInstall)
run_cmake(FileSetDirectories)
set(RunCMake_TEST_OPTIONS -DCMAKE_POLICY_DEFAULT_CMP0115=NEW)