cmTargetSourcesCommand: allow INTERFACE C++ modules when imported

`PUBLIC` filesets become `INTERFACE` upon installation. Allow
`INTERFACE` scopes for C++ modules when the target is imported.
This commit is contained in:
Ben Boeckel
2022-06-16 14:51:30 -04:00
parent ea3175a4eb
commit f3cfde394a
7 changed files with 33 additions and 3 deletions
@@ -0,0 +1,8 @@
add_library(module-header SHARED IMPORTED)
target_sources(module-header
INTERFACE
FILE_SET fs TYPE CXX_MODULE_HEADER_UNITS FILES
sources/module-header.h)
target_compile_features(module-header
INTERFACE
cxx_std_20)