Skip to content

Commit

Permalink
Don't override user provided compile definitions (backport #145) (#147)
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>
(cherry picked from commit 454a7bc)
  • Loading branch information
mergify[bot] committed Jun 27, 2023
1 parent 1e5560a commit 5e9d492
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 5e9d492

Please sign in to comment.