From 44b84ea5cbfc7f35d9066f9dad409e27cc411723 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Tue, 9 Jun 2015 22:48:19 +0300 Subject: [PATCH] Using -std=c++11 compiler flag --- libuavcan/CMakeLists.txt | 2 +- libuavcan_drivers/linux/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libuavcan/CMakeLists.txt b/libuavcan/CMakeLists.txt index 780a2215d6..f2fd00bf79 100644 --- a/libuavcan/CMakeLists.txt +++ b/libuavcan/CMakeLists.txt @@ -48,7 +48,7 @@ if (COMPILER_IS_GCC_COMPATIBLE) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++03 -Wno-variadic-macros -Wno-long-long") else () message(STATUS "Using C++11 (pass USE_CPP03=1 to override)") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") endif () endif () diff --git a/libuavcan_drivers/linux/CMakeLists.txt b/libuavcan_drivers/linux/CMakeLists.txt index 0e35644862..463cdf9e7d 100644 --- a/libuavcan_drivers/linux/CMakeLists.txt +++ b/libuavcan_drivers/linux/CMakeLists.txt @@ -36,7 +36,7 @@ endif () # Applications - tests, tools. # include_directories(include) -set(CMAKE_CXX_FLAGS "-Wall -Wextra -pedantic -std=c++0x") # GCC or Clang +set(CMAKE_CXX_FLAGS "-Wall -Wextra -pedantic -std=c++11") # GCC or Clang # # Tests