summaryrefslogtreecommitdiffstats
path: root/config/cmake_ext_mod
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2021-10-19 03:32:49 (GMT)
committerGitHub <noreply@github.com>2021-10-19 03:32:49 (GMT)
commite5e108dbd56fc1b871915d3de64fe85a6fc9b175 (patch)
tree7755e175976f3fd2b2b33c753d654931c1d8d349 /config/cmake_ext_mod
parenta19923d07aec07eb7ce1be81374aa3693594480a (diff)
downloadhdf5-e5e108dbd56fc1b871915d3de64fe85a6fc9b175.zip
hdf5-e5e108dbd56fc1b871915d3de64fe85a6fc9b175.tar.gz
hdf5-e5e108dbd56fc1b871915d3de64fe85a6fc9b175.tar.bz2
Merge delete the noerror- variants of the compiler flags files #1033 (#1093)
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 ()