ament_target_dependencies() the first argument must be a valid target name
I'm getting the following error. I'm not exactly sure why:
-- project name baxter_base_service
CMake Error at /opt/ros/foxy/share/ament_cmake_target_dependencies/cmake/ament_target_dependencies.cmake:42 (message):
ament_target_dependencies() the first argument must be a valid target name
Call Stack (most recent call first):
CMakeLists.txt:81 (ament_target_dependencies)
This is why I have in my Cmake file:
# find dependencies
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(base_service_interfaces REQUIRED)
find_package(baxter_base_service_interfaces REQUIRED)
#List of dependencies
set (
BASE_DEPENDENCY_LIST
ament_cmake
rclcpp
base_service_interfaces
baxter_base_service_interfaces
)
#add_library(${PROJECT_NAME} ${SRC_FILES})
message(STATUS "project name ${PROJECT_NAME}")
ament_target_dependencies(${PROJECT_NAME} ${DEPENDENCY_LIST}
)
Would some one be able to help me with this error?
${PROJECT_NAME}"
is set to
baxter_base_service