summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2024-05-14 20:03:16 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2024-05-15 11:15:05 (GMT)
commita46395df06a87f10aae22706543b1899bd314dba (patch)
treea227d337bcb8676bf15ddb715f65f2b3fae92303 /Modules/Compiler
parent5d658ebcc6df9f7de3c9ef9f3723d5cb726ba431 (diff)
downloadCMake-a46395df06a87f10aae22706543b1899bd314dba.zip
CMake-a46395df06a87f10aae22706543b1899bd314dba.tar.gz
CMake-a46395df06a87f10aae22706543b1899bd314dba.tar.bz2
importstd: clarify when the experimental UUID must be available
Fixes: #25980
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/CMakeCommonCompilerMacros.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/CMakeCommonCompilerMacros.cmake b/Modules/Compiler/CMakeCommonCompilerMacros.cmake
index 75a9da2..ffd02ec 100644
--- a/Modules/Compiler/CMakeCommonCompilerMacros.cmake
+++ b/Modules/Compiler/CMakeCommonCompilerMacros.cmake
@@ -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 ()