Tests/RunCMake: handle C++26 support where needed

(cherry picked from commit 2791b7564b (Tests/RunCMake: handle C++26
support where needed, 2024-12-31, v4.0.0-rc1~238^2~3))
This commit is contained in:
Ben Boeckel
2025-05-14 15:39:12 +02:00
parent 7b16db932a
commit acbada3df6
@@ -6,6 +6,7 @@ cmake_minimum_required(VERSION 3.29)
if (EXPORT_NO_STD)
# Block making C++ `import std` targets.
add_library(__CMAKE::CXX23 IMPORTED INTERFACE)
add_library(__CMAKE::CXX26 IMPORTED INTERFACE)
endif ()
project(cxx_modules_import_std_transitive CXX)