From c0385a6b9ca8f8dc7855f0d63511004ec26fcc3f Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 9 May 2024 15:45:05 -0400 Subject: Modules/Compiler/Clang: add a reason for non-`libc++` compilations See: #25965 --- Modules/Compiler/Clang-CXX-CXXImportStd.cmake | 3 +++ 1 file changed, 3 insertions(+) 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 () -- cgit v0.12