diff options
author | Jennifer Green <jgreen@lanl.gov> | 2020-04-22 16:54:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-04-29 12:08:59 (GMT) |
commit | 4ab0d37b4147dfd6a06995efbcaf2aa68abf29c3 (patch) | |
tree | 612ad12cfcdfeb3a941d69fdc66f1f70d4d13cf8 /Source/Checks/cm_cxx_features.cmake | |
parent | 615129f3ebd308abeaaee7f5f0689e7fc4616c28 (diff) | |
download | CMake-4ab0d37b4147dfd6a06995efbcaf2aa68abf29c3.zip CMake-4ab0d37b4147dfd6a06995efbcaf2aa68abf29c3.tar.gz CMake-4ab0d37b4147dfd6a06995efbcaf2aa68abf29c3.tar.bz2 |
cm_cxx_features: Filter out libhugetlbfs warnings
Without this, CMake fails to build on Cray systems with a
craype-hugepages modulefile loaded on the front-end due to libhugetlbfs
warnings breaking the CXX Feature tests. Filter out the warnings so the
bootstrap can proceed to successfully install CMake on Cray Linux
systems.
Fixes: #20645
Diffstat (limited to 'Source/Checks/cm_cxx_features.cmake')
-rw-r--r-- | Source/Checks/cm_cxx_features.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Checks/cm_cxx_features.cmake b/Source/Checks/cm_cxx_features.cmake index c16286c..145f45c 100644 --- a/Source/Checks/cm_cxx_features.cmake +++ b/Source/Checks/cm_cxx_features.cmake @@ -28,6 +28,8 @@ function(cm_check_cxx_feature name) string(REGEX REPLACE "[^\n]*warning:[^\n]*object file compiled with -mlong-branch which is no longer needed[^\n]*" "" check_output "${check_output}") # Filter out other warnings unrelated to feature checks. string(REGEX REPLACE "[^\n]*warning:[^\n]*sprintf\\(\\) is often misused, please use snprintf[^\n]*" "" check_output "${check_output}") + # Filter out libhugetlbfs warnings. + 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]*\\] warning: [^\n]*" "" check_output "${check_output}") # Filter out ld warnings. |