diff options
author | Craig Scott <craig.scott@crascit.com> | 2022-01-02 22:35:16 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2022-01-02 22:35:16 (GMT) |
commit | f745e0497ee71d35fd1b3524b1636a72da76c266 (patch) | |
tree | 47c02c80cbcceb76276937930dcff64190b76f46 /Modules | |
parent | 5c09fe028318e48b68c3128d3f465a3ba6f65287 (diff) | |
download | CMake-f745e0497ee71d35fd1b3524b1636a72da76c266.zip CMake-f745e0497ee71d35fd1b3524b1636a72da76c266.tar.gz CMake-f745e0497ee71d35fd1b3524b1636a72da76c266.tar.bz2 |
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
Diffstat (limited to 'Modules')
-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..8f59acd 100644 --- a/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake +++ b/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake @@ -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 |