Skip to content

Commit

Permalink
Update ros-humble-backward-ros.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias-Fischer committed Sep 13, 2023
1 parent 8f94958 commit 7b68d72
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions patch/ros-humble-backward-ros.patch
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,25 @@ index 273a51a..d981cbb 100644
+
+SET(CMAKE_EXE_LINKER_FLAGS "${no_as_needed} ${backward_ros_full_path_LIBRARIES} ${as_needed} ${CMAKE_EXE_LINKER_FLAGS}")
+
diff --git a/cmake/BackwardConfig.cmake b/cmake/BackwardConfig.cmake
index 77d22d2..8e95287 100644
--- a/cmake/BackwardConfig.cmake
+++ b/cmake/BackwardConfig.cmake
@@ -125,11 +125,14 @@ endforeach()

set(BACKWARD_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}")

+set(FIND_PACKAGE_REQUIRED_VARS BACKWARD_INCLUDE_DIR)
+if(DEFINED BACKWARD_LIBRARIES)
+ list(APPEND FIND_PACKAGE_REQUIRED_VARS BACKWARD_LIBRARIES)
+endif()
+
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Backward
- REQUIRED_VARS
- BACKWARD_INCLUDE_DIR
- BACKWARD_LIBRARIES
+ REQUIRED_VARS ${FIND_PACKAGE_REQUIRED_VARS}
)
list(APPEND _BACKWARD_INCLUDE_DIRS ${BACKWARD_INCLUDE_DIR})

0 comments on commit 7b68d72

Please sign in to comment.