diff --git a/CMakeLists.txt b/CMakeLists.txt index 6202498..649659c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") diff --git a/configure.ac b/configure.ac index 31d49b5..e9f75b4 100644 --- a/configure.ac +++ b/configure.ac @@ -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],