diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2021-10-14 19:29:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-14 19:29:04 (GMT) |
commit | 7432a7d918bf6bbfb1b671fe020711f6d56cc31e (patch) | |
tree | 7929371e0b1aefd6e4b112343ae065a7407ff055 /config/cmake_ext_mod | |
parent | 4bb3e661c51b75fa78a7d2e55fa963b7f263bd0d (diff) | |
download | hdf5-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.cmake | 3 |
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 () |