mirror of
https://github.com/Unidata/netcdf-cxx4.git
synced 2024-11-21 03:13:46 +08:00
Merge pull request #147 from WardF/compile_issue.wif
Enforce C++ std 11 in build system.
This commit is contained in:
commit
9ecd295a8f
@ -432,6 +432,8 @@ ENDIF()
|
||||
#
|
||||
# Also, set some other default compiler flags.
|
||||
##
|
||||
SET(CMAKE_CXX_STANDARD 11)
|
||||
SET(CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
||||
|
||||
IF(CMAKE_COMPILER_IS_GNUCC OR APPLE)
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-unused-variable -Wno-unused-parameter")
|
||||
|
@ -175,6 +175,9 @@ AC_FUNC_MALLOC
|
||||
# Check to see if any macros must be set to enable large (>2GB) files.
|
||||
AC_SYS_LARGEFILE
|
||||
|
||||
# Set the CXXFLAGSS
|
||||
CXXFLAGS="$CXXFLAGS --std=c++11"
|
||||
|
||||
# User supplied nc-config
|
||||
AC_ARG_WITH([nc-config],
|
||||
[AS_HELP_STRING([--with-nc-config=DIR],
|
||||
|
Loading…
Reference in New Issue
Block a user