From bbfb6b9cea168eaddbfade7353738ed9534750c0 Mon Sep 17 00:00:00 2001 From: sanctum32 Date: Mon, 2 Feb 2015 19:48:21 +0000 Subject: [PATCH] fixed travis build for gcc --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 99ec5830e..38b52f449 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -237,8 +237,10 @@ endif() # Handle debugmode compiles (this will require further work for proper WIN32-setups) if(UNIX) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") - + if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") + endif() + set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g") endif()