Skip to content

Commit

Permalink
Rolling: ament_cmake_auto should include dependencies as SYSTEM (#385)
Browse files Browse the repository at this point in the history
* 0.9.7

Signed-off-by: Joshua Whitley <[email protected]>

* Add includes as SYSTEM in ament_auto_add_library.

Signed-off-by: Joshua Whitley <[email protected]>

* Add includes as SYSTEM in ament_auto_add_executable.

Signed-off-by: Joshua Whitley <[email protected]>

* Also add build depends as SYSTEM.

Signed-off-by: Joshua Whitley <[email protected]>

* Revert changes to linking to project libraries.

Signed-off-by: Joshua Whitley <[email protected]>

Signed-off-by: Joshua Whitley <[email protected]>
Co-authored-by: ahcorde <[email protected]>
  • Loading branch information
JWhitleyWork and ahcorde authored Sep 20, 2022
1 parent e4d63ee commit 799183a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ament_cmake_auto/cmake/ament_auto_add_executable.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ macro(ament_auto_add_executable target)
endif()

# add exported information from found build dependencies
ament_target_dependencies(${target} ${${PROJECT_NAME}_FOUND_BUILD_DEPENDS})
ament_target_dependencies(${target} SYSTEM ${${PROJECT_NAME}_FOUND_BUILD_DEPENDS})

list(APPEND ${PROJECT_NAME}_EXECUTABLES "${target}")
endmacro()
2 changes: 1 addition & 1 deletion ament_cmake_auto/cmake/ament_auto_add_library.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ macro(ament_auto_add_library target)
endif()

# add exported information from found build dependencies
ament_target_dependencies(${target} ${${PROJECT_NAME}_FOUND_BUILD_DEPENDS})
ament_target_dependencies(${target} SYSTEM ${${PROJECT_NAME}_FOUND_BUILD_DEPENDS})

list(APPEND ${PROJECT_NAME}_LIBRARIES "${target}")
endmacro()

0 comments on commit 799183a

Please sign in to comment.