Files
CMake/Tests/RunCMake/CXXModules/CMP0155-OLD.cmake
Ben Boeckel 437280b127 cxxmodules: scan C++ sources for imports by default
Existing projects are not using C++ modules in their sources,
so introduce policy CMP0155 to enable scanning by default.
2023-10-02 10:17:31 -04:00

12 lines
235 B
CMake

enable_language(CXX)
unset(CMAKE_CXX_SCANDEP_SOURCE)
cmake_policy(SET CMP0155 OLD)
add_executable(cmp0155-old
sources/module-use.cxx)
set_target_properties(cmp0155-old
PROPERTIES
CXX_STANDARD 20
CXX_STANDARD_REQUIRED ON)