mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 08:20:18 -06:00
`PUBLIC` filesets become `INTERFACE` upon installation. Allow `INTERFACE` scopes for C++ modules when the target is imported.
9 lines
232 B
CMake
9 lines
232 B
CMake
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)
|