Commit 72c016a9 authored by David Partyka's avatar David Partyka
Browse files

COMP: Also disable netcdf4 cxx warnings.

parent 2d73ddc8
......@@ -271,14 +271,18 @@ IF (NETCDF_DISABLE_COMPILER_WARNINGS)
IF (MSVC)
STRING (REGEX REPLACE "(^| )([/-])W[0-9]( |$)" " "
CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
STRING (REGEX REPLACE "(^| )([/-])W[0-9]( |$)" " "
CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /w")
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /w")
# Borland uses -w- to suppress warnings.
ELSEIF (BORLAND)
SET (HDF5_WARNINGS_BLOCKED 1)
SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w-")
SET (CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -w-")
ELSE ()
# Most compilers use -w to suppress warnings.
SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w")
SET (CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -w")
ENDIF ()
ENDIF (NETCDF_DISABLE_COMPILER_WARNINGS)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment