diff options
author | CoprDistGit <infra@openeuler.org> | 2024-05-27 03:15:38 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-05-27 03:15:38 +0000 |
commit | d525b748b19d678132e5df61c032e0bba6ac2117 (patch) | |
tree | 6a903fbb178476c99a64f2a89d3755de8eb7e962 /cmake-3.27.9-fix-cxx-standard-check-issue.patch | |
parent | a2f31a97c16070e74e5ce86120718f6dc8d80ac5 (diff) |
automatic import of cmakeopeneuler23.09openeuler23.03openeuler22.09openeuler22.03_LTS_SP3openeuler22.03_LTS_SP2openeuler22.03_LTSopeneuler20.03
Diffstat (limited to 'cmake-3.27.9-fix-cxx-standard-check-issue.patch')
-rw-r--r-- | cmake-3.27.9-fix-cxx-standard-check-issue.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cmake-3.27.9-fix-cxx-standard-check-issue.patch b/cmake-3.27.9-fix-cxx-standard-check-issue.patch new file mode 100644 index 0000000..af9e6a6 --- /dev/null +++ b/cmake-3.27.9-fix-cxx-standard-check-issue.patch @@ -0,0 +1,13 @@ +diff --git a/Source/Checks/cm_cxx_features.cmake b/Source/Checks/cm_cxx_features.cmake +index 02627464..4f6ccdaf 100644 +--- a/Source/Checks/cm_cxx_features.cmake ++++ b/Source/Checks/cm_cxx_features.cmake +@@ -44,6 +44,8 @@ function(cm_check_cxx_feature name) + 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}") ++ # Filter out clang output warnings ++ string(REGEX REPLACE "[^\n]*warning:[^\n]*-Wunused-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}") |