commit 418c993cba51da5be86dae29cdddea1015f2e717 parent 69268e4e5c399c42c5058879922f3df330837fcb Author: Vincent Forest <vincent.forest@meso-star.com> Date: Tue, 4 Dec 2018 16:46:39 +0100 Fix GCC errors with NetCDF 4.4.0 Diffstat:
| M | cmake/CMakeLists.txt | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt @@ -39,6 +39,9 @@ include_directories( ${NETCDF_C_INCLUDE_DIRS} ${RSys_INCLUDE_DIR}) +# Required by the netcdf.h header that in some versions contains C99 comments +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu89") + if(CMAKE_COMPILER_IS_GNUCC) set(MATH_LIB m) endif()