From 8300646b336cfb23aa35907e73f1aa309eeb0370 Mon Sep 17 00:00:00 2001 From: tosh Date: Fri, 29 Mar 2013 10:42:36 +0100 Subject: [PATCH] allows new C++ standard features --- interface/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/interface/CMakeLists.txt b/interface/CMakeLists.txt index 595a5a3050..5e6ead8149 100644 --- a/interface/CMakeLists.txt +++ b/interface/CMakeLists.txt @@ -8,6 +8,12 @@ set(PORTAUDIO_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/portaudio) project(interface) +# ++ C++ version +if (NOT MSVC) + # msvc defaults to latest version + add_definitions("-std=c++0x") +endif (NOT MSVC) + if (APPLE) # link in required OS X frameworks and include the right GL headers set(CMAKE_EXE_LINKER_FLAGS "-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework CoreServices -framework Carbon -framework GLUT")