Skip to content

Commit a61d973

Browse files
authored
Fix: Conditionally install launch directory if it exists (#3191)
1 parent a12f327 commit a61d973

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

moveit_setup_assistant/moveit_setup_framework/templates/CMakeLists.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ find_package(ament_cmake REQUIRED)
55

66
ament_package()
77

8-
install(
9-
DIRECTORY launch
10-
DESTINATION share/${PROJECT_NAME}
11-
PATTERN "setup_assistant.launch" EXCLUDE)
8+
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/launch")
9+
install(
10+
DIRECTORY launch
11+
DESTINATION share/${PROJECT_NAME}
12+
PATTERN "setup_assistant.launch" EXCLUDE)
13+
endif()
14+
1215
install(DIRECTORY config DESTINATION share/${PROJECT_NAME})
1316
install(FILES .setup_assistant DESTINATION share/${PROJECT_NAME})

0 commit comments

Comments
 (0)