diff options
author | jinzhe li <jinzhe.oerv@isrc.iscas.ac.cn> | 2024-04-13 03:57:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-04-15 16:09:49 (GMT) |
commit | 6a2cfbd4eab3352f62765553ca9a8c9a38b83ee1 (patch) | |
tree | f3c0ca4e6cc05d6078c078762a96d1e370f0dad5 /Source/Checks | |
parent | 1d31a00ee45545a7943e8b413b60b658b1565367 (diff) | |
download | CMake-6a2cfbd4eab3352f62765553ca9a8c9a38b83ee1.zip CMake-6a2cfbd4eab3352f62765553ca9a8c9a38b83ee1.tar.gz CMake-6a2cfbd4eab3352f62765553ca9a8c9a38b83ee1.tar.bz2 |
cm_cxx_features: Ignore Clang unused-argument warnings
Filter out `-Wunused-command-line-argument` warnings from Clang (that
can be caused by user-specified flags) so that they do not break our
checks for C++ feature availability.
This extends commit 71b65abca2 (C++ feature checks: Filter out warnings
caused by user flags, 2017-09-19, v3.10.0-rc1~90^2).
Diffstat (limited to 'Source/Checks')
-rw-r--r-- | Source/Checks/cm_cxx_features.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Checks/cm_cxx_features.cmake b/Source/Checks/cm_cxx_features.cmake index 0262746..02ebaa6 100644 --- a/Source/Checks/cm_cxx_features.cmake +++ b/Source/Checks/cm_cxx_features.cmake @@ -43,7 +43,7 @@ function(cm_check_cxx_feature name) # Filter out MSVC output that looks like a command-line warning. string(REGEX REPLACE "[^\n]*warning D[0-9][0-9][0-9][0-9][^\n]*" "" check_output "${check_output}") # Filter out warnings caused by user flags. - string(REGEX REPLACE "[^\n]*warning:[^\n]*-Winvalid-command-line-argument[^\n]*" "" check_output "${check_output}") + string(REGEX REPLACE "[^\n]*warning:[^\n]*-W(invalid|unused)-command-line-argument[^\n]*" "" check_output "${check_output}") # Filter out warnings caused by local configuration. string(REGEX REPLACE "[^\n]*warning:[^\n]*directory not found for option[^\n]*" "" check_output "${check_output}") string(REGEX REPLACE "[^\n]*warning:[^\n]*object file compiled with -mlong-branch which is no longer needed[^\n]*" "" check_output "${check_output}") |