diff options
author | KOLANICH <kolan_n@mail.ru> | 2023-01-23 00:13:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-01-24 22:17:36 (GMT) |
commit | 5b45a3d0ce5e2e73cd07cb103dedd4dd0204f6d1 (patch) | |
tree | 2ea8e3bf1a3a9312886d128b83c8b1699582b719 /Modules/CMakeCheckCompilerFlagCommonPatterns.cmake | |
parent | 6d57bbdc7b9299e97edfb224734dd95145e0b23f (diff) | |
download | CMake-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/CMakeCheckCompilerFlagCommonPatterns.cmake')
-rw-r--r-- | Modules/CMakeCheckCompilerFlagCommonPatterns.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake b/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake index bda1d71..cd978d5 100644 --- a/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake +++ b/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake @@ -12,6 +12,7 @@ macro (CHECK_COMPILER_FLAG_COMMON_PATTERNS _VAR) FAIL_REGEX "switch .* is no longer supported" # GNU FAIL_REGEX "unknown .*option" # Clang FAIL_REGEX "optimization flag .* not supported" # Clang + FAIL_REGEX "argument unused during compilation: .*" # Clang FAIL_REGEX "unknown argument ignored" # Clang (cl) FAIL_REGEX "ignoring unknown option" # MSVC, Intel FAIL_REGEX "warning D9002" # MSVC, any lang |