From 87cf39f595cc552d4cf2dccdea05e5481e444f14 Mon Sep 17 00:00:00 2001 From: LanderU Date: Fri, 12 Jul 2019 08:16:02 +0200 Subject: [PATCH] mara_contact_publisher/CMakeLists.txt: * Use add_compile_options Signed-off-by: LanderU --- mara_contact_publisher/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mara_contact_publisher/CMakeLists.txt b/mara_contact_publisher/CMakeLists.txt index 58d5014..978f3bc 100644 --- a/mara_contact_publisher/CMakeLists.txt +++ b/mara_contact_publisher/CMakeLists.txt @@ -8,7 +8,7 @@ endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") # we dont use add_compile_options with pedantic in message packages # because the Python C extensions dont comply with it - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -fpermissive") + add_compile_options(-Wall -Wextra -Wpedantic -fpermissive) endif() find_package(ament_cmake REQUIRED)