diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2018-05-04 21:37:14 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2018-05-04 21:37:14 (GMT) |
commit | 2ad049a6411923653365962c826cf59cf801d0d7 (patch) | |
tree | e8f8441cf03001362edf75bae862ab5b4b93a658 /config/cmake/HDFCompilerFlags.cmake | |
parent | 5f702f40b719a05bf2d271797179b368c5fd39c5 (diff) | |
parent | cc2eea14f6a6532a201dde13af13353d4d73fd92 (diff) | |
download | hdf5-2ad049a6411923653365962c826cf59cf801d0d7.zip hdf5-2ad049a6411923653365962c826cf59cf801d0d7.tar.gz hdf5-2ad049a6411923653365962c826cf59cf801d0d7.tar.bz2 |
Merge pull request #1045 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:1.10/master to 1.10/masterhdf5-1_10_2
* commit 'cc2eea14f6a6532a201dde13af13353d4d73fd92': (1014 commits)
Commit release date changes.
Fix typo in INSTALL_Cygwin.txt
Update references and merge from 1_10
Corrected email address
Commit Barbara's INSTALL* file updates.
Commit Elena's RELEASE.txt edits and Les'/Lori's README.txt revision.
ommit Elena's RELEASE.txt edits and Les'/Lori's README.txt revision.
Remove stray '/'.
Add subdirectory for CMake-HDF5-1.10.2.zip.
Correct name of hl compile script
Add directory in release CMake...tar.gz file.
Minor edits in RELEASE.txt. Set version for HDF5 1.10.2 release.
release branch should not generate headers
Switch default build mode to production. Set version to 1.10.2-pre2..
HDFF5-1.10.2-pre1 releaseed. Add links for security bug fixes to RELEASE.txt.
Fix VS2017 binary readme
Couple fixes to the test routine for HDFFV-10425.
Add test and release info for the fix to HDFFV-10425 test failure with H5DOwrite_chunk.
Updated RELEASE.txt
Remove known probelem that was fixed.
...
Diffstat (limited to 'config/cmake/HDFCompilerFlags.cmake')
-rw-r--r-- | config/cmake/HDFCompilerFlags.cmake | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/config/cmake/HDFCompilerFlags.cmake b/config/cmake/HDFCompilerFlags.cmake index 5f71f33..56277fa 100644 --- a/config/cmake/HDFCompilerFlags.cmake +++ b/config/cmake/HDFCompilerFlags.cmake @@ -13,12 +13,12 @@ # Compiler specific flags : Shouldn't there be compiler tests for these #----------------------------------------------------------------------------- if (CMAKE_COMPILER_IS_GNUCC) - if (CMAKE_BUILD_TYPE MATCHES Debug) + if (${HDF_CFG_NAME} MATCHES "Debug") set (CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS} -std=c99") if (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 5.0) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Og -ftrapv -fno-common") endif () - else (CMAKE_BUILD_TYPE MATCHES Debug) + else () set (CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS} -std=c99") if (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 5.0) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstdarg-opt") @@ -26,7 +26,7 @@ if (CMAKE_COMPILER_IS_GNUCC) endif () endif () if (CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_LOADED) - if (CMAKE_BUILD_TYPE MATCHES Debug) + if (${HDF_CFG_NAME} MATCHES "Debug") set (CMAKE_CXX_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_CXX_FLAGS}") if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Og -ftrapv -fno-common") @@ -49,9 +49,9 @@ if (HDF5_DISABLE_COMPILER_WARNINGS) if (MSVC) set (HDF5_WARNINGS_BLOCKED 1) string (REGEX REPLACE "(^| )([/-])W[0-9]( |$)" " " CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") - set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /w") + set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W0") string (REGEX REPLACE "(^| )([/-])W[0-9]( |$)" " " CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") - set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /w") + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W0") endif () if (WIN32) add_definitions (-D_CRT_SECURE_NO_WARNINGS) |