From: Ingo Ruhnke Date: Sun, 3 Aug 2014 16:29:46 +0000 (+0200) Subject: Enabled C++11 support X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=802a3c029cb91fe73dfabc553ca2f39953ca2af6;p=supertux.git Enabled C++11 support --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 676d2a422..08f813728 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -227,6 +227,7 @@ ENDIF(COMPILE_AMALGATION) OPTION(WERROR "Stop on first compiler warning" OFF) OPTION(WARNINGS "Enable long list of warnings for compiler to check" OFF) IF(CMAKE_COMPILER_IS_GNUCC) + SET(CMAKE_CXX_FLAGS "-std=c++0x") SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g" CACHE STRING "Debug flags") SET(CMAKE_C_FLAGS_DEBUG "-O0 -g" CACHE STRING "Debug flags") SET(CMAKE_CXX_FLAGS_PROFILE "-pg" CACHE STRING "Profile flags")