summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CXXModules/NoCXX23TargetNotRequired.cmake
blob: 2d9bffa1d56f2456a4ab0b68fd944cd1059bcac8 (plain)
1
2
3
4
5
6
7
8
9
10
11
enable_language(CXX)
set(CMAKE_CXX_SCANDEP_SOURCE "echo")

set(CMAKE_CXX_MODULE_STD 0)

add_library(nocxx23target)
target_sources(nocxx23target
  PRIVATE
    FILE_SET fs TYPE CXX_MODULES FILES
      sources/module.cxx)
target_compile_features(nocxx23target PRIVATE cxx_std_23)