Skip to content

Commit

Permalink
Fix: Conditionally install launch directory in generated MoveIt confi…
Browse files Browse the repository at this point in the history
…g package (backport #3191) (#3194)

* Fix: Conditionally install launch directory if it exists (#3191)

(cherry picked from commit a61d973)

---------

Co-authored-by: Filippo Bosi <[email protected]>
  • Loading branch information
mergify[bot] and filippo-bosi authored Jan 4, 2025
1 parent 4965677 commit a3685b5
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ find_package(ament_cmake REQUIRED)

ament_package()

install(DIRECTORY launch DESTINATION share/${PROJECT_NAME}
PATTERN "setup_assistant.launch" EXCLUDE)
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/launch")
install(
DIRECTORY launch
DESTINATION share/${PROJECT_NAME}
PATTERN "setup_assistant.launch" EXCLUDE)
endif()

install(DIRECTORY config DESTINATION share/${PROJECT_NAME})
install(FILES .setup_assistant DESTINATION share/${PROJECT_NAME})

0 comments on commit a3685b5

Please sign in to comment.