summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CXXModules/NoCXX26TargetNotRequired.cmake
blob: b91fa9b719923c106d767c5125759df3c87e500c (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(nocxx26target)
target_sources(nocxx26target
  PRIVATE
    FILE_SET fs TYPE CXX_MODULES FILES
      sources/module.cxx)
target_compile_features(nocxx26target PRIVATE cxx_std_26)