diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-02-12 15:42:23 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-02-12 15:42:23 (GMT) |
commit | a68302883a243c33ceb495e3e151331fa267f455 (patch) | |
tree | 4a85b8c5c96bd9664b5f3dd180e555ea71b92f52 /config/cmake | |
parent | b8a57cb8dcd991f95a725c5691378d78a387fcbb (diff) | |
download | hdf5-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.cmake | 4 |
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 #----------------------------------------------------------------------------- |