mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-09 01:09:30 -05:00
These tests mess with the availability of C++ module support. Hide generation of the utility targets from any compiler detection.
15 lines
324 B
CMake
15 lines
324 B
CMake
# Block making C++ `import std` targets.
|
|
add_library(__CMAKE::CXX23 IMPORTED INTERFACE)
|
|
|
|
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)
|