summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2024-05-09 19:45:05 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2024-05-09 19:45:05 (GMT)
commitc0385a6b9ca8f8dc7855f0d63511004ec26fcc3f (patch)
tree4391564b245c427d5167d1f11dce1bad7169c43a /Modules
parent760ad9bcc7a3262c6e3365453a79bcde43c1705e (diff)
downloadCMake-c0385a6b9ca8f8dc7855f0d63511004ec26fcc3f.zip
CMake-c0385a6b9ca8f8dc7855f0d63511004ec26fcc3f.tar.gz
CMake-c0385a6b9ca8f8dc7855f0d63511004ec26fcc3f.tar.bz2
Modules/Compiler/Clang: add a reason for non-`libc++` compilations
See: #25965
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Compiler/Clang-CXX-CXXImportStd.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/Compiler/Clang-CXX-CXXImportStd.cmake b/Modules/Compiler/Clang-CXX-CXXImportStd.cmake
index 55dbfb8..f58f17e 100644
--- a/Modules/Compiler/Clang-CXX-CXXImportStd.cmake
+++ b/Modules/Compiler/Clang-CXX-CXXImportStd.cmake
@@ -1,5 +1,8 @@
function (_cmake_cxx_import_std std variable)
if (NOT CMAKE_CXX_STANDARD_LIBRARY STREQUAL "libc++")
+ set("${variable}"
+ "set(CMAKE_CXX${std}_COMPILER_IMPORT_STD_NOT_FOUND_MESSAGE \"Only `libc++` is supported\")\n"
+ PARENT_SCOPE)
return ()
endif ()