{"action":"opened","issue":{"url":"https://api.github.com/repos/ros/resource_retriever/issues/21","repository_url":"https://api.github.com/repos/ros/resource_retriever","labels_url":"https://api.github.com/repos/ros/resource_retriever/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/ros/resource_retriever/issues/21/comments","events_url":"https://api.github.com/repos/ros/resource_retriever/issues/21/events","html_url":"https://github.com/ros/resource_retriever/issues/21","id":304337592,"number":21,"title":"ROS 2: find_package doesn't populate the INCLUDE_DIRS variable as expected","user":{"login":"Martin-Idel-SI","id":31658331,"avatar_url":"https://avatars2.githubusercontent.com/u/31658331?v=4","gravatar_id":"","url":"https://api.github.com/users/Martin-Idel-SI","html_url":"https://github.com/Martin-Idel-SI","followers_url":"https://api.github.com/users/Martin-Idel-SI/followers","following_url":"https://api.github.com/users/Martin-Idel-SI/following{/other_user}","gists_url":"https://api.github.com/users/Martin-Idel-SI/gists{/gist_id}","starred_url":"https://api.github.com/users/Martin-Idel-SI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Martin-Idel-SI/subscriptions","organizations_url":"https://api.github.com/users/Martin-Idel-SI/orgs","repos_url":"https://api.github.com/users/Martin-Idel-SI/repos","events_url":"https://api.github.com/users/Martin-Idel-SI/events{/privacy}","received_events_url":"https://api.github.com/users/Martin-Idel-SI/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-12T11:40:18Z","updated_at":"2018-03-12T11:40:18Z","closed_at":null,"author_association":"NONE","body":"In RViz2, we're using resource_retriever as a dependency. When doing a `find_package(resource_retriever REQUIRED)` I would have expected the variable `resource_retriever_INCLUDE_DIRS` to contain the path to the include files of resource retriever and its dependencies.\r\n\r\nHowever, it only contains the paths to the includes of its dependencies (in an isolated build, e.g. ` <path_to_ros2>/install_isolated/ament_index_cpp/include;/usr/include/x86_64-linux-gnu`). Is this expected behaviour? If yes, how do I get the correct include paths for building static and object libraries? \r\n\r\nBackground: When building all rviz2 libraries dynamically, everything works fine (I don't quite understand how, but `ament_export_interfaces` seems to play a role), but in order to have tests for its default plugins, I want to build a static library of `rviz_default_plugins` as well - at that point, ament can't find the correct includes of `resource_retriever` anymore. "}}
{"actor":{"display_login":"Martin-Idel-SI"}}