From 337fdff08ea4a066ae515459066d7240331ed8b4 Mon Sep 17 00:00:00 2001 From: Daniel Willenson Date: Mon, 20 Nov 2017 16:10:13 -0500 Subject: [PATCH] Don't completely overwrite the CMAKE_CXX_FLAGS --- libuavcan_drivers/linux/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libuavcan_drivers/linux/CMakeLists.txt b/libuavcan_drivers/linux/CMakeLists.txt index 9577b227ca..f96b41de3d 100644 --- a/libuavcan_drivers/linux/CMakeLists.txt +++ b/libuavcan_drivers/linux/CMakeLists.txt @@ -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)