mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-08-21 01:20:35 +08:00
Merge pull request #114 from daniel-formlabs/dont-overwrite-cmake-cxx-flags
Don't completely overwrite the CMAKE_CXX_FLAGS
This commit is contained in:
@@ -43,7 +43,7 @@ endif ()
|
||||
# Applications - tests, tools.
|
||||
#
|
||||
include_directories(include)
|
||||
set(CMAKE_CXX_FLAGS "-Wall -Wextra -pedantic -std=c++11") # GCC or Clang
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -std=c++11") # GCC or Clang
|
||||
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
add_definitions(-DUAVCAN_DEBUG=1)
|
||||
|
||||
Reference in New Issue
Block a user