summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-06-03 15:46:24 (GMT)
committerBrad King <brad.king@kitware.com>2024-06-03 15:46:24 (GMT)
commit557a5f3083648ac50f5869a9a204ef6cdd934c16 (patch)
tree7bb3ad0e86cf4a2e537a85009843bd3d413aefff
parent1df18d5e54023af6d7802a7219d2d4ef6e88bdb2 (diff)
downloadCMake-557a5f3083648ac50f5869a9a204ef6cdd934c16.zip
CMake-557a5f3083648ac50f5869a9a204ef6cdd934c16.tar.gz
CMake-557a5f3083648ac50f5869a9a204ef6cdd934c16.tar.bz2
cm_cxx_features: Filter out icpx -Woverriding-t-option warnings
Issue: #20664
-rw-r--r--Source/Checks/cm_cxx_features.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Checks/cm_cxx_features.cmake b/Source/Checks/cm_cxx_features.cmake
index 02ebaa6..019b867 100644
--- a/Source/Checks/cm_cxx_features.cmake
+++ b/Source/Checks/cm_cxx_features.cmake
@@ -53,8 +53,10 @@ function(cm_check_cxx_feature name)
string(REGEX REPLACE "[^\n]*libhugetlbfs [^\n]*: WARNING[^\n]*" "" check_output "${check_output}")
# Filter out xcodebuild warnings.
string(REGEX REPLACE "[^\n]* xcodebuild\\[[0-9]*:[0-9]*\\][^\n]*[Ww]arning: [^\n]*" "" check_output "${check_output}")
- # Filter out icpc warnings
+ # Filter out Intel classic warnings about overridden flags
string(REGEX REPLACE "[^\n]*icpc: command line warning #10121: overriding [^\n]*" "" check_output "${check_output}")
+ # Filter out Intel oneAPI warnings about overridden flags
+ string(REGEX REPLACE "[^\n]*icpx: warning: overriding [^\n]*" "" check_output "${check_output}")
# Filter out ld warnings.
string(REGEX REPLACE "[^\n]*ld: warning: [^\n]*" "" check_output "${check_output}")
# If using the feature causes warnings, treat it as broken/unavailable.