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