diff options
author | Brad King <brad.king@kitware.com> | 2024-05-13 13:36:07 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-05-13 13:36:15 (GMT) |
commit | 3bb51964bd809cceb1aebb3fd22a607784a21289 (patch) | |
tree | ef8dd02cf379b0565ad56e0cb96c5a0b4e27f289 /Modules | |
parent | ac44f6335e23d43732d6daaf6620c2de0df4d884 (diff) | |
parent | c0385a6b9ca8f8dc7855f0d63511004ec26fcc3f (diff) | |
download | CMake-3bb51964bd809cceb1aebb3fd22a607784a21289.zip CMake-3bb51964bd809cceb1aebb3fd22a607784a21289.tar.gz CMake-3bb51964bd809cceb1aebb3fd22a607784a21289.tar.bz2 |
Merge topic 'cxxmodules-nolibcxx-import-std-reason'
c0385a6b9c Modules/Compiler/Clang: add a reason for non-`libc++` compilations
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9504
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Compiler/Clang-CXX-CXXImportStd.cmake | 3 |
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 () |