You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
376 B
17 lines
376 B
enable_language(CXX)
|
|
set(CMAKE_EXPERIMENTAL_CXX_MODULE_DYNDEP 1)
|
|
set(CMAKE_EXPERIMENTAL_CXX_SCANDEP_SOURCE "")
|
|
|
|
if (NOT CMAKE_CXX_STANDARD_DEFAULT)
|
|
set(CMAKE_CXX_STANDARD_DEFAULT "11")
|
|
endif ()
|
|
|
|
add_library(nodyndep)
|
|
target_sources(nodyndep
|
|
PUBLIC
|
|
FILE_SET fs TYPE CXX_MODULES FILES
|
|
sources/module.cxx)
|
|
target_compile_features(nodyndep
|
|
PRIVATE
|
|
cxx_std_20)
|