Skip to content

Commit

Permalink
Don't override user provided compile definitions (backport #145) (#146)
Browse files Browse the repository at this point in the history
* Don't override user provided compile definitions (#145)

* Don't override user provided compile definitions

Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Co-authored-by: Shane Loretz <sloretz@openrobotics.org>
  • Loading branch information
mergify[bot] and sloretz committed Jun 23, 2023
1 parent 7789b1d commit c111323
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ set_target_properties(${rosidl_generate_interfaces_TARGET}${_target_suffix}
CXX_STANDARD 14)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set_target_properties(${rosidl_generate_interfaces_TARGET}${_target_suffix}
PROPERTIES COMPILE_OPTIONS -Wall -Wextra -Wpedantic)
target_compile_options(${rosidl_generate_interfaces_TARGET}${_target_suffix}
PRIVATE -Wall -Wextra -Wpedantic)
endif()

# if only a single typesupport is used this package will directly reference it
Expand Down

0 comments on commit c111323

Please sign in to comment.