Skip to content

Commit

Permalink
[ros2] update package path to find package description
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasDuvinage committed Nov 25, 2024
1 parent 418f74f commit a13d312
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/mc_rtcMacros.in.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,14 @@ macro(find_description_package PACKAGE)
find_package(${PACKAGE} REQUIRED)
if("${${PACKAGE}_INSTALL_PREFIX}" STREQUAL "")
if("${${PACKAGE}_SOURCE_PREFIX}" STREQUAL "")
message(
FATAL_ERROR
"Your ${PACKAGE} does not define where to find the data, please update."
)
if("${${PACKAGE}_DIR}" STREQUAL "")
message(
FATAL_ERROR
"Your ${PACKAGE} does not define where to find the data, please update."
)
else()
set(${PACKAGE_PATH_VAR} "${${PACKAGE}_DIR}/..")
endif()
else()
set(${PACKAGE_PATH_VAR} "${${PACKAGE}_SOURCE_PREFIX}")
endif()
Expand Down

0 comments on commit a13d312

Please sign in to comment.