NoCXX26TargetUnset.cmake 386 B

12345678910111213
  1. enable_language(CXX)
  2. set(CMAKE_CXX_SCANDEP_SOURCE "echo")
  3. # TODO(cxxmodules): Add instances of this test which test the policy
  4. # of the property's unset behavior.
  5. # set(CMAKE_CXX_MODULE_STD …)
  6. add_library(nocxx26target)
  7. target_sources(nocxx26target
  8. PRIVATE
  9. FILE_SET fs TYPE CXX_MODULES FILES
  10. sources/module.cxx)
  11. target_compile_features(nocxx26target PRIVATE cxx_std_26)