mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Several problems with this feature came up while testing 4.3.0-rc1.
These include both broken stdlib distributions and regressions in our
implementation of the feature since CMake 4.2.
Revert commit 70c1f0f43d (Experimental: Remove import std experimental
gate, 2026-02-04, v4.3.0-rc1~61^2) except for its incidental fixes.
Remove the 4.3 release notes related to `import std`.
Rotate the experimental gate's UUID.
Issue: #27426
Issue: #27597
Issue: #27626
Issue: #27635
22 lines
583 B
CMake
22 lines
583 B
CMake
set(CMAKE_EXPERIMENTAL_CXX_IMPORT_STD
|
|
"01234567-0123-0123-0123-0123456789ab")
|
|
|
|
cmake_language(GET_EXPERIMENTAL_FEATURE_ENABLED
|
|
"CxxImportStd"
|
|
feature_present)
|
|
|
|
if (NOT feature_present STREQUAL "FALSE")
|
|
message(FATAL_ERROR
|
|
"Expected the `CxxImportStd` feature to be disabled.")
|
|
endif ()
|
|
|
|
# Test if/when warning is repeated.
|
|
cmake_language(GET_EXPERIMENTAL_FEATURE_ENABLED
|
|
"CxxImportStd"
|
|
feature_present)
|
|
set(CMAKE_EXPERIMENTAL_CXX_IMPORT_STD
|
|
"76543210-3210-3210-3210-ba9876543210")
|
|
cmake_language(GET_EXPERIMENTAL_FEATURE_ENABLED
|
|
"CxxImportStd"
|
|
feature_present)
|