Skip to content

CMake Export Warning #30

@threeal

Description

@threeal

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})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions