mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-08 06:16:53 +00:00
CheckCompilerFlags: Catch linker warning about ignored flags
Example warning from arm64 macOS that this will now catch: ld: warning: -no_pie ignored for arm64 Fixes: #22961
This commit is contained in:
1 parent
5c09fe0283
commit
f745e0497e
1 file changed
+1
@@ -13,6 +13,7 @@ macro (CHECK_COMPILER_FLAG_COMMON_PATTERNS _VAR)
|
||||
FAIL_REGEX "unknown .*option" # Clang
|
||||
FAIL_REGEX "optimization flag .* not supported" # Clang
|
||||
FAIL_REGEX "unknown argument ignored" # Clang (cl)
|
||||
FAIL_REGEX "warning: .* ignored" # Clang (linker)
|
||||
FAIL_REGEX "ignoring unknown option" # MSVC, Intel
|
||||
FAIL_REGEX "warning D9002" # MSVC, any lang
|
||||
FAIL_REGEX "option.*not supported" # Intel
|
||||
|
||||
Reference in new issue
Block a user