Don't completely overwrite the CMAKE_CXX_FLAGS

This commit is contained in:
Daniel Willenson 2017-11-20 16:10:13 -05:00
parent d577c5871c
commit 337fdff08e

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)