summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2022-02-17 19:43:06 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2022-02-17 19:43:06 (GMT)
commit058b8a0bfb722b3a75ca051c0e1f7b1261643815 (patch)
tree6b2b4973b47d24da25f222dd49e6c60c2033e104 /Tests
parent9c81f2cb8bcb5f4ad96f2ad527035649bd70d5fc (diff)
downloadCMake-058b8a0bfb722b3a75ca051c0e1f7b1261643815.zip
CMake-058b8a0bfb722b3a75ca051c0e1f7b1261643815.tar.gz
CMake-058b8a0bfb722b3a75ca051c0e1f7b1261643815.tar.bz2
install(): Properly ignore FILE_SETs that don't exist
Fixes: #22960
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)