Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies listed under catkin_package(DEPENDS...) are not found in the cmake package config. #1160

Open
Levi-Armstrong opened this issue Dec 15, 2021 · 0 comments

Comments

@Levi-Armstrong
Copy link
Contributor

Since it is leverage targets instead of CMake variables it appears catkin is excluding the listed DEPEND form the generated cmake package config.

find_package(yaml-cpp REQUIRED)
catkin_package(
  INCLUDE_DIRS
    include
  LIBRARIES
    ${PROJECT_NAME}
   DEPENDS
     yaml-cpp)
add_library(${PROJECT_NAME} SHARED ...)
target_link_libraries(${PROJECT_NAME} PUBLIC yaml-cpp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant