From 237f9c0801d212b6548a612b9c336525ac50d01f Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Wed, 24 Dec 2014 11:29:16 +0100 Subject: [PATCH] switching to -std=c++11 since -std=c++0x is deprecated --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a0fff730..120a22dc1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -999,7 +999,7 @@ endif(ENABLE_OSMOSDR) # Enable C++11 support in GCC # For "-std=c++0x" GCC's support for C++11 see http://gcc.gnu.org/projects/cxx0x.html if(CMAKE_COMPILER_IS_GNUCXX AND NOT WIN32) - set(MY_CXX_FLAGS "${MY_CXX_FLAGS} -std=c++0x -Wall -Wextra") #Add warning flags: For "-Wall" see http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html + set(MY_CXX_FLAGS "${MY_CXX_FLAGS} -std=c++11 -Wall -Wextra") #Add warning flags: For "-Wall" see http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html endif(CMAKE_COMPILER_IS_GNUCXX AND NOT WIN32) if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") set(MY_CXX_FLAGS "${MY_CXX_FLAGS} -std=c++11 -stdlib=libc++ -Wno-c++11-narrowing")