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

CMake Export Warning #30

Open
threeal opened this issue May 11, 2021 · 0 comments
Open

CMake Export Warning #30

threeal opened this issue May 11, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@threeal
Copy link
Owner

threeal commented May 11, 2021

Apparently, this package is trying to export library that is not created (it's probably caused by refactoring project in the latest release).

--- stderr: dienen_behaviors                                                                                       
CMake Warning at /opt/ros/foxy/share/tosshin_cpp/cmake/ament_cmake_export_libraries-extras.cmake:116 (message):
  Package 'tosshin_cpp' exports library 'tosshin_cpp' which couldn't be found
Call Stack (most recent call first):
  /opt/ros/foxy/share/tosshin_cpp/cmake/tosshin_cppConfig.cmake:41 (include)
  CMakeLists.txt:20 (find_package)

install(DIRECTORY "include" DESTINATION ".")
add_executable(navigation_dummy "examples/navigation_dummy.cpp")
add_executable(navigation_teleop "examples/navigation_teleop.cpp")
foreach(target navigation_dummy navigation_teleop)
target_include_directories(${target} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
ament_target_dependencies(${target}
keisan rclcpp tosshin_interfaces)
install(TARGETS ${target}
DESTINATION "lib/${PROJECT_NAME}")
endforeach()
if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()
ament_export_dependencies(keisan rclcpp tosshin_interfaces)
ament_export_include_directories("include")
ament_export_libraries(${PROJECT_NAME})

@threeal threeal added the bug Something isn't working label May 11, 2021
@threeal threeal added this to the First Major Release milestone May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant