diff options
author | Brad King <brad.king@kitware.com> | 2022-01-06 15:13:56 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-01-06 15:14:06 (GMT) |
commit | 13e71b7c3ec9351f0c25656e72c1c0199ddf771c (patch) | |
tree | 4063d63d4e926edbf69151ccb8fa425d0c7ada22 | |
parent | ac892a64a93054f27dfd84d99af01ac68aa617d7 (diff) | |
parent | f745e0497ee71d35fd1b3524b1636a72da76c266 (diff) | |
download | CMake-13e71b7c3ec9351f0c25656e72c1c0199ddf771c.zip CMake-13e71b7c3ec9351f0c25656e72c1c0199ddf771c.tar.gz CMake-13e71b7c3ec9351f0c25656e72c1c0199ddf771c.tar.bz2 |
Merge topic 'try-link-ld-warning-no_pie'
f745e0497e CheckCompilerFlags: Catch linker warning about ignored flags
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !6836
-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 |