Skip to content

Commit

Permalink
use add_compile_options instead of setting only cxx flags
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelarguedas committed Sep 18, 2018
1 parent ec26237 commit 80ee9d6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tf2_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
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")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()

find_package(ament_cmake)
Expand Down

0 comments on commit 80ee9d6

Please sign in to comment.