summaryrefslogtreecommitdiffstats
path: root/config/cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-02-12 15:42:23 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-02-12 15:42:23 (GMT)
commita68302883a243c33ceb495e3e151331fa267f455 (patch)
tree4a85b8c5c96bd9664b5f3dd180e555ea71b92f52 /config/cmake
parentb8a57cb8dcd991f95a725c5691378d78a387fcbb (diff)
downloadhdf5-a68302883a243c33ceb495e3e151331fa267f455.zip
hdf5-a68302883a243c33ceb495e3e151331fa267f455.tar.gz
hdf5-a68302883a243c33ceb495e3e151331fa267f455.tar.bz2
TRILAB-148 fix sanitizer and -fsanitize usage
Diffstat (limited to 'config/cmake')
-rw-r--r--config/cmake/HDFCompilerFlags.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/cmake/HDFCompilerFlags.cmake b/config/cmake/HDFCompilerFlags.cmake
index ea85736..17b0854 100644
--- a/config/cmake/HDFCompilerFlags.cmake
+++ b/config/cmake/HDFCompilerFlags.cmake
@@ -30,8 +30,10 @@ macro (ADD_H5_FLAGS h5_flag_var infile)
#message (STATUS "h5_flag_var=${${h5_flag_var}}")
endmacro ()
-message (STATUS "Warnings Configuration:")
set (CMAKE_C_FLAGS "${CMAKE_C99_STANDARD_COMPILE_OPTION} ${CMAKE_C_FLAGS}")
+set (CMAKE_C_FLAGS "${CMAKE_C_SANITIZER_FLAGS} ${CMAKE_C_FLAGS}")
+set (CMAKE_CXX_FLAGS "${CMAKE_CXX_SANITIZER_FLAGS} ${CMAKE_CXX_FLAGS}")
+message (STATUS "Warnings Configuration: default: ${CMAKE_C_FLAGS} : ${CMAKE_CXX_FLAGS}")
#-----------------------------------------------------------------------------
# Compiler specific flags : Shouldn't there be compiler tests for these
#-----------------------------------------------------------------------------