Tests/RunCMake/CXXModules: Rename FileSetModules cases to be more specific

They all add `CXX_MODULES` to `STATIC` libraries.
This commit is contained in:
Brad King 2024-12-11 12:10:48 -05:00
parent 817707b904
commit cd179e7560
6 changed files with 7 additions and 2 deletions

View File

@ -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\):

View File

@ -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")