Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 7, 2024
1 parent 6cc2c9a commit 5d5fadd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/mc_rtcMacros.in.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,14 @@ macro(find_description_package PACKAGE)
find_package(${PACKAGE} REQUIRED)
if("${${PACKAGE}_INSTALL_PREFIX}" STREQUAL "")
if("${${PACKAGE}_SOURCE_PREFIX}" STREQUAL "")
if("${${PACKAGE}_DIR}" STREQUAL "")
message(
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}_DIR}/..")
endif()
else()
set(${PACKAGE_PATH_VAR} "${${PACKAGE}_SOURCE_PREFIX}")
endif()
Expand Down

0 comments on commit 5d5fadd

Please sign in to comment.