blob: 09544007f5c2879da03cbc35bee57cd477eb13db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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)
|