From 9ad4383ff833f8f63d9e656037d4b46ae41389bd Mon Sep 17 00:00:00 2001 From: Ward Fisher Date: Tue, 19 Feb 2013 17:13:24 +0000 Subject: [PATCH] Merged final changes against netcdf-cmake branch in preparation for 4.3.0-rc1 --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c5b035c3..7e1e3610c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,12 @@ SET(NetCDF_VERSION_NOTE "-rc1") SET(NetCDF_VERSION ${NetCDF_VERSION_MAJOR}.${NetCDF_VERSION_MINOR}.${NetCDF_VERSION_PATCH}${NetCDF_VERSION_NOTE}) SET(VERSION ${NetCDF_VERSION}) +# Set some default C Flags if we are using GCC +IF(CMAKE_COMPILER_IS_GNUCC) + SET(CMAKE_C_FLAGS "-g -O2") +ENDIF() + + ENABLE_TESTING() INCLUDE(CTest)