diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-06-16 18:51:30 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-07-06 14:15:23 (GMT) |
commit | f3cfde394a903928cc379f3a56a9cb9618def665 (patch) | |
tree | cfe08d26ac37a4b3d378f0269883f1906a32a591 /Tests/RunCMake/CXXModules/FileSetModulesInterfaceImported.cmake | |
parent | ea3175a4ebba7bf8688f2f62f434a1602012ab61 (diff) | |
download | CMake-f3cfde394a903928cc379f3a56a9cb9618def665.zip CMake-f3cfde394a903928cc379f3a56a9cb9618def665.tar.gz CMake-f3cfde394a903928cc379f3a56a9cb9618def665.tar.bz2 |
cmTargetSourcesCommand: allow `INTERFACE` C++ modules when imported
`PUBLIC` filesets become `INTERFACE` upon installation. Allow
`INTERFACE` scopes for C++ modules when the target is imported.
Diffstat (limited to 'Tests/RunCMake/CXXModules/FileSetModulesInterfaceImported.cmake')
-rw-r--r-- | Tests/RunCMake/CXXModules/FileSetModulesInterfaceImported.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/CXXModules/FileSetModulesInterfaceImported.cmake b/Tests/RunCMake/CXXModules/FileSetModulesInterfaceImported.cmake new file mode 100644 index 0000000..6640ae9 --- /dev/null +++ b/Tests/RunCMake/CXXModules/FileSetModulesInterfaceImported.cmake @@ -0,0 +1,8 @@ +add_library(module SHARED IMPORTED) +target_sources(module + INTERFACE + FILE_SET fs TYPE CXX_MODULES FILES + sources/module.cxx) +target_compile_features(module + INTERFACE + cxx_std_20) |