Merge topic 'import-std-experimental-docs'

a46395df06 importstd: clarify when the experimental UUID must be available

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9522
This commit is contained in:
Brad King
2024-05-16 15:17:13 +00:00
committed by Kitware Robot
4 changed files with 5 additions and 4 deletions

View File

@@ -50,7 +50,8 @@ set
This UUID may change in future versions of CMake. Be sure to use the value
documented here by the source tree of the version of CMake with which you are
experimenting.
experimenting. It must be set before the ``CXX`` toolchain is discovered by
CMake, usually as part of a :command:`project` call.
When activated, this experimental feature provides the following:

View File

@@ -250,7 +250,7 @@ function(cmake_create_cxx_import_std std variable)
_cmake_supported_import_std_experimental)
if (NOT _cmake_supported_import_std_experimental)
set("${variable}"
"set(CMAKE_CXX${std}_COMPILER_IMPORT_STD_NOT_FOUND_MESSAGE \"Experimental `import std` support not enabled when detecting toolchain\")\n"
"set(CMAKE_CXX${std}_COMPILER_IMPORT_STD_NOT_FOUND_MESSAGE \"Experimental `import std` support not enabled when detecting toolchain; it must be set before `CXX` is enabled (usually a `project()` call)\")\n"
PARENT_SCOPE)
return ()
endif ()

View File

@@ -3,7 +3,7 @@ CMake Error in CMakeLists.txt:
the "__CMAKE::CXX23" target exist, but it was not provided by the
toolchain. Reason:
(Toolchain does not support discovering `import std` support|Experimental `import std` support not enabled when detecting toolchain|Unsupported generator: [^\n]*)
(Toolchain does not support discovering `import std` support|Experimental `import std` support not enabled when detecting toolchain; it must be set before `CXX` is enabled \(usually a `project\(\)` call\)|Unsupported generator: [^\n]*)
CMake Generate step failed. Build files cannot be regenerated correctly.

View File

@@ -3,7 +3,7 @@ CMake Error in CMakeLists.txt:
the "__CMAKE::CXX26" target exist, but it was not provided by the
toolchain. Reason:
(Toolchain does not support discovering `import std` support|Experimental `import std` support not enabled when detecting toolchain|Unsupported generator: [^\n]*)
(Toolchain does not support discovering `import std` support|Experimental `import std` support not enabled when detecting toolchain; it must be set before `CXX` is enabled \(usually a `project\(\)` call\)|Unsupported generator: [^\n]*)
CMake Generate step failed. Build files cannot be regenerated correctly.