Merge pull request #147 from WardF/compile_issue.wif

Enforce C++ std 11 in build system.
This commit is contained in:
Ward Fisher 2024-06-10 18:22:39 -05:00 committed by GitHub
commit 9ecd295a8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -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")

View File

@ -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],