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:
Pavel Kirienko
2017-11-21 17:29:26 +02:00
committed by GitHub
+1 -1
View File
@@ -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)