summaryrefslogtreecommitdiffstats
path: root/Modules/Internal/CMakeTryCompilerOrLinkerFlag.cmake
diff options
context:
space:
mode:
authorKOLANICH <kolan_n@mail.ru>2023-01-23 00:13:56 (GMT)
committerBrad King <brad.king@kitware.com>2023-01-24 22:17:36 (GMT)
commit5b45a3d0ce5e2e73cd07cb103dedd4dd0204f6d1 (patch)
tree2ea8e3bf1a3a9312886d128b83c8b1699582b719 /Modules/Internal/CMakeTryCompilerOrLinkerFlag.cmake
parent6d57bbdc7b9299e97edfb224734dd95145e0b23f (diff)
downloadCMake-5b45a3d0ce5e2e73cd07cb103dedd4dd0204f6d1.zip
CMake-5b45a3d0ce5e2e73cd07cb103dedd4dd0204f6d1.tar.gz
CMake-5b45a3d0ce5e2e73cd07cb103dedd4dd0204f6d1.tar.bz2
CheckCompilerFlag: Match the Clang "argument unused" output for all languages
Improve detection of missing compiler flags: move "argument unused during compilation: .*" pattern from language-specific branches into the common list.
Diffstat (limited to 'Modules/Internal/CMakeTryCompilerOrLinkerFlag.cmake')
-rw-r--r--Modules/Internal/CMakeTryCompilerOrLinkerFlag.cmake1
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/Internal/CMakeTryCompilerOrLinkerFlag.cmake b/Modules/Internal/CMakeTryCompilerOrLinkerFlag.cmake
index b671b4a..ff8908b 100644
--- a/Modules/Internal/CMakeTryCompilerOrLinkerFlag.cmake
+++ b/Modules/Internal/CMakeTryCompilerOrLinkerFlag.cmake
@@ -69,7 +69,6 @@ function(CMAKE_TRY_COMPILER_OR_LINKER_FLAG lang flag result)
set (CCCF_COMMAND_PATTERN "<FLAG> -o <OUTPUT> <SOURCE>")
endif()
- list (APPEND CCCF_FAIL_REGEX "argument unused during compilation") # clang
if (check_lang STREQUAL "C")
list(APPEND CCCF_FAIL_REGEX
"command line option .* is valid for .* but not for C") # GNU