Skip to content

Commit

Permalink
Per #2948, Adding MET_CXX_STANDARD
Browse files Browse the repository at this point in the history
  • Loading branch information
jprestop committed Aug 22, 2024
1 parent 196083c commit 4899c29
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@ AC_OPENMP()
CPPFLAGS="${CPPFLAGS} ${OPENMP_CFLAGS}"
LDFLAGS="${LDFLAGS} ${OPENMP_CFLAGS}"

#
# Look for a specified C++ Standard
#

# Configure the variable. The help text will appear if the user uses "configure --help".

AC_ARG_VAR([MET_CXX_STANDARD], [Enable support for the specified version of the C++ standard. Default value is 17. Other values may be 11 or 14.])

# Set a default value

if (test -n "$MET_CXX_STANDARD"); then
MET_CXX_STANDARD=17
fi

#
# Look for the Proj library.
#
Expand Down Expand Up @@ -1160,7 +1174,7 @@ AM_CONDITIONAL([ENABLE_DEVELOPMENT], [test -n "$MET_DEVELOPMENT"])
CPPFLAGS=$CPPFLAGS' -DMET_BASE="\"$(pkgdatadir)\""'

# Add -std=c++11 to CXXFLAGS
CXXFLAGS=$CXXFLAGS' -std=c++11'
CXXFLAGS=$CXXFLAGS' -std=c++$MET_CXX_STANDARD'

# Define other variables for the makefiles

Expand Down

0 comments on commit 4899c29

Please sign in to comment.