summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-12-11 17:10:48 (GMT)
committerBrad King <brad.king@kitware.com>2024-12-11 17:20:45 (GMT)
commitcd179e75606c6dc821b10574927e449b397b931c (patch)
tree68bc0509be4fd4f7a5b02eb040c63802ea13090a /Tests/RunCMake
parent817707b904746a87af996254edad93a419eea4af (diff)
downloadCMake-cd179e75606c6dc821b10574927e449b397b931c.zip
CMake-cd179e75606c6dc821b10574927e449b397b931c.tar.gz
CMake-cd179e75606c6dc821b10574927e449b397b931c.tar.bz2
Tests/RunCMake/CXXModules: Rename FileSetModules cases to be more specific
They all add `CXX_MODULES` to `STATIC` libraries.
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r--Tests/RunCMake/CXXModules/FileSetModulesInterfaceOnStatic-result.txt (renamed from Tests/RunCMake/CXXModules/FileSetModulesInterface-result.txt)0
-rw-r--r--Tests/RunCMake/CXXModules/FileSetModulesInterfaceOnStatic-stderr.txt (renamed from Tests/RunCMake/CXXModules/FileSetModulesInterface-stderr.txt)2
-rw-r--r--Tests/RunCMake/CXXModules/FileSetModulesInterfaceOnStatic.cmake (renamed from Tests/RunCMake/CXXModules/FileSetModulesInterface.cmake)0
-rw-r--r--Tests/RunCMake/CXXModules/FileSetModulesPrivateOnStatic.cmake (renamed from Tests/RunCMake/CXXModules/FileSetModulesPrivate.cmake)0
-rw-r--r--Tests/RunCMake/CXXModules/FileSetModulesPublicOnStatic.cmake (renamed from Tests/RunCMake/CXXModules/FileSetModulesPublic.cmake)0
-rw-r--r--Tests/RunCMake/CXXModules/RunCMakeTest.cmake7
6 files changed, 7 insertions, 2 deletions
diff --git a/Tests/RunCMake/CXXModules/FileSetModulesInterface-result.txt b/Tests/RunCMake/CXXModules/FileSetModulesInterfaceOnStatic-result.txt
index d00491f..d00491f 100644
--- a/Tests/RunCMake/CXXModules/FileSetModulesInterface-result.txt
+++ b/Tests/RunCMake/CXXModules/FileSetModulesInterfaceOnStatic-result.txt
diff --git a/Tests/RunCMake/CXXModules/FileSetModulesInterface-stderr.txt b/Tests/RunCMake/CXXModules/FileSetModulesInterfaceOnStatic-stderr.txt
index 7269c65..7d099de 100644
--- a/Tests/RunCMake/CXXModules/FileSetModulesInterface-stderr.txt
+++ b/Tests/RunCMake/CXXModules/FileSetModulesInterfaceOnStatic-stderr.txt
@@ -1,4 +1,4 @@
-CMake Error at FileSetModulesInterface.cmake:[0-9]+ \(target_sources\):
+CMake Error at FileSetModulesInterfaceOnStatic.cmake:[0-9]+ \(target_sources\):
target_sources File set TYPE "CXX_MODULES" may not have "INTERFACE"
visibility
Call Stack \(most recent call first\):
diff --git a/Tests/RunCMake/CXXModules/FileSetModulesInterface.cmake b/Tests/RunCMake/CXXModules/FileSetModulesInterfaceOnStatic.cmake
index 24cec3e..24cec3e 100644
--- a/Tests/RunCMake/CXXModules/FileSetModulesInterface.cmake
+++ b/Tests/RunCMake/CXXModules/FileSetModulesInterfaceOnStatic.cmake
diff --git a/Tests/RunCMake/CXXModules/FileSetModulesPrivate.cmake b/Tests/RunCMake/CXXModules/FileSetModulesPrivateOnStatic.cmake
index 83bbd4d..83bbd4d 100644
--- a/Tests/RunCMake/CXXModules/FileSetModulesPrivate.cmake
+++ b/Tests/RunCMake/CXXModules/FileSetModulesPrivateOnStatic.cmake
diff --git a/Tests/RunCMake/CXXModules/FileSetModulesPublic.cmake b/Tests/RunCMake/CXXModules/FileSetModulesPublicOnStatic.cmake
index 52ba35f..52ba35f 100644
--- a/Tests/RunCMake/CXXModules/FileSetModulesPublic.cmake
+++ b/Tests/RunCMake/CXXModules/FileSetModulesPublicOnStatic.cmake
diff --git a/Tests/RunCMake/CXXModules/RunCMakeTest.cmake b/Tests/RunCMake/CXXModules/RunCMakeTest.cmake
index 8b7bc86..0413793 100644
--- a/Tests/RunCMake/CXXModules/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CXXModules/RunCMakeTest.cmake
@@ -71,9 +71,14 @@ set(scopes
Interface
Private
Public)
+set(target_types
+ Static
+ )
foreach (fileset_type IN LISTS fileset_types)
foreach (scope IN LISTS scopes)
- run_cmake("FileSet${fileset_type}${scope}")
+ foreach (target_type IN LISTS target_types)
+ run_cmake("FileSet${fileset_type}${scope}On${target_type}")
+ endforeach ()
endforeach ()
run_cmake("FileSet${fileset_type}InterfaceImported")