Skip to content

Commit

Permalink
Merge pull request #110 from Unidata/gh70.wif
Browse files Browse the repository at this point in the history
Fix compiler issue on OSX
  • Loading branch information
WardF authored Jan 17, 2019
2 parents 90f0fb9 + 04dd607 commit 41a6e58
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
##################################

#Minimum required CMake Version
cmake_minimum_required(VERSION 2.8.9)
cmake_minimum_required(VERSION 3.0.0)

#Project Name for netCDF-Fortran
PROJECT (NC4F Fortran C)
Expand Down Expand Up @@ -555,8 +555,10 @@ IF (UNIX AND ${CMAKE_SIZEOF_VOID_P} MATCHES "8")
ADD_DEFINITIONS(-DLONGLONG_IS_LONG)
# for easier debugging of cfortran.h
IF (APPLE)
SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fmacro-backtrace-limit=0")
endif ()
IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fmacro-backtrace-limit=0")
ENDIF()
ENDIF(APPLE)
ENDIF()

# Determine C library setting for NC_RELAX_COORD_BOUND
Expand Down

0 comments on commit 41a6e58

Please sign in to comment.