summaryrefslogtreecommitdiffstats
path: root/config/cmake_ext_mod
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2021-10-14 19:29:04 (GMT)
committerGitHub <noreply@github.com>2021-10-14 19:29:04 (GMT)
commit7432a7d918bf6bbfb1b671fe020711f6d56cc31e (patch)
tree7929371e0b1aefd6e4b112343ae065a7407ff055 /config/cmake_ext_mod
parent4bb3e661c51b75fa78a7d2e55fa963b7f263bd0d (diff)
downloadhdf5-7432a7d918bf6bbfb1b671fe020711f6d56cc31e.zip
hdf5-7432a7d918bf6bbfb1b671fe020711f6d56cc31e.tar.gz
hdf5-7432a7d918bf6bbfb1b671fe020711f6d56cc31e.tar.bz2
1.12 Merge delete the noerror- variants of the compiler flags files #1033 (#1091)
* Merge delete the noerror- variants of the compiler flags files #1033 * Remove files from MANIFEST
Diffstat (limited to 'config/cmake_ext_mod')
-rw-r--r--config/cmake_ext_mod/HDFMacros.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/cmake_ext_mod/HDFMacros.cmake b/config/cmake_ext_mod/HDFMacros.cmake
index ae0ebca..6da2b74 100644
--- a/config/cmake_ext_mod/HDFMacros.cmake
+++ b/config/cmake_ext_mod/HDFMacros.cmake
@@ -464,6 +464,9 @@ macro (ADD_H5_FLAGS h5_flag_var infile)
list (GET TEST_FLAG_STREAM ${line} str_flag)
string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}")
#message (TRACE "str_flag=${str_flag}")
+ if (NOT HDF5_ENABLE_WARNINGS_AS_ERRORS)
+ string (REGEX REPLACE "-Werror=" "-W" str_flag "${str_flag}")
+ endif ()
if (str_flag)
list (APPEND ${h5_flag_var} "${str_flag}")
endif ()