mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-08 10:48:53 +08:00
Using -std=c++11 compiler flag
This commit is contained in:
@@ -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 ()
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user