From d87c95c1f8f846193acd51a61c7aab939aa946f5 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Tue, 19 Aug 2014 20:00:55 -0400 Subject: [PATCH] Properly set '-std=c++0x' as a CXX_FLAGS This fixes an issue with clang compiling C files. (Note: this does not mean clang is supported yet) Ideally, this should check the compiler for -std=c++11 support, then check -std=c++0x if the previous failed, then error if that fails as well. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b4f3e101f..1d0b6a632 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -259,7 +259,7 @@ OPTION(EQEMU_BUILD_CLIENT_FILES "Build Client Import/Export Data Programs." ON) #C++11 stuff IF(NOT MSVC) - ADD_DEFINITIONS(-std=c++0x) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") ENDIF(NOT MSVC) #Various definitions