Skip to content

Commit

Permalink
Fix: Conditionally install launch directory if it exists (#3191)
Browse files Browse the repository at this point in the history
  • Loading branch information
filippo-bosi authored Jan 4, 2025
1 parent a12f327 commit a61d973
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +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 a61d973

Please sign in to comment.