diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2019-01-06 07:45:15 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2019-01-06 07:45:15 (GMT) |
commit | aa62951a5fbbffa88185a58aea2b7526f5e66ce6 (patch) | |
tree | 210e7ae75fdb65fbcdc7c4049e6d80e9060b3f5b /config/cmake/HDFCompilerFlags.cmake | |
parent | e1b59919bb96f68f3b372a73790ecbe4ac3b395a (diff) | |
parent | 0e34f0feaaeb6d2286f87f695f25fae45c070a42 (diff) | |
download | hdf5-aa62951a5fbbffa88185a58aea2b7526f5e66ce6.zip hdf5-aa62951a5fbbffa88185a58aea2b7526f5e66ce6.tar.gz hdf5-aa62951a5fbbffa88185a58aea2b7526f5e66ce6.tar.bz2 |
Merge branch 'develop' of https://bitbucket.hdfgroup.org/scm/~bmribler/hdf5_bmr_fixbug into develop
Diffstat (limited to 'config/cmake/HDFCompilerFlags.cmake')
-rw-r--r-- | config/cmake/HDFCompilerFlags.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/cmake/HDFCompilerFlags.cmake b/config/cmake/HDFCompilerFlags.cmake index 93ebc3c..0a39568 100644 --- a/config/cmake/HDFCompilerFlags.cmake +++ b/config/cmake/HDFCompilerFlags.cmake @@ -9,16 +9,16 @@ # If you do not have access to either file, you may request a copy from # help@hdfgroup.org. # +set(CMAKE_C_STANDARD 99) +set(CMAKE_C_STANDARD_REQUIRED TRUE) message (STATUS "Warnings Configuration:") +set (CMAKE_C_FLAGS "${CMAKE_C99_STANDARD_COMPILE_OPTION} ${CMAKE_C_FLAGS}") #----------------------------------------------------------------------------- # Compiler specific flags : Shouldn't there be compiler tests for these #----------------------------------------------------------------------------- if (CMAKE_COMPILER_IS_GNUCC) set (CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}") - if (NOT CYGWIN) - set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99") - endif () if (${HDF_CFG_NAME} MATCHES "Debug") if (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 5.0) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Og -ftrapv -fno-common") |