Skip to content

Commit

Permalink
BUILD: Make --std=c++03 not the default
Browse files Browse the repository at this point in the history
As Linux distributions move to compile their libraries with C++11
features, xoreos fails to compile with --std=c++03.
  • Loading branch information
DrMcCoy committed Jul 8, 2017
1 parent 27d3b68 commit 4f2b9e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ else()
endif()

# C++ standard we're compiling against
set_check_compiler_flag_cxx("-std=c++03")
# set_check_compiler_flag_cxx("-std=c++03")

# Compiler warning flags, not for MSVC
if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ fi
AC_SUBST(WARN)

dnl C++ dialect
AC_ARG_WITH([std], [AS_HELP_STRING([--without-std], [Compile without specifying the C++ standard to follow @<:@default=no@:>@])], [], [with_std=yes])
AC_ARG_WITH([std], [AS_HELP_STRING([--with-std], [Compile with specifying the C++ standard to follow @<:@default=no@:>@])], [], [with_std=no])

STD=""
if test "x$with_std" = "xyes"; then
Expand Down

0 comments on commit 4f2b9e5

Please sign in to comment.