Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

Commit 03bf92c

Browse files
committed
fix check if DEPENDS was found
1 parent b1e138a commit 03bf92c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmake/catkin_package.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function(_catkin_package)
144144
endif()
145145
if("${second_item}" STREQUAL "COMPONENTS")
146146
list(GET depend_list 0 depend_name)
147-
if(NOT ${${depend_name}_FOUND})
147+
if(NOT ${depend_name}_FOUND)
148148
message(FATAL_ERROR "catkin_package() DEPENDS on '${depend}' which must be find_package()-ed before")
149149
endif()
150150
message(WARNING "catkin_package() DEPENDS on '${depend}' which is deprecated. find_package() it before and only DEPENDS on '${depend_name}' instead")
@@ -157,7 +157,7 @@ function(_catkin_package)
157157
#message(WARNING "catkin_package() DEPENDS on catkin package '${depend_name}' which is deprecated. Use CATKIN_DEPENDS for catkin packages instead.")
158158
list(APPEND _PROJECT_CATKIN_DEPENDS ${depend_name})
159159
else()
160-
if(NOT ${${depend_name}_FOUND})
160+
if(NOT ${depend_name}_FOUND)
161161
message(FATAL_ERROR "catkin_package() DEPENDS on '${depend_name}' which must be find_package()-ed before. If it is a catkin package it can be declared as CATKIN_DEPENDS instead without find_package()-ing it.")
162162
endif()
163163
list(APPEND PROJECT_DEPENDENCIES_INCLUDE_DIRS ${${depend_name}_INCLUDE_DIRS})

0 commit comments

Comments
 (0)