Skip to content

Commit

Permalink
fix missing target dependency on rosidl_runtime_c (#220)
Browse files Browse the repository at this point in the history
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
  • Loading branch information
dirk-thomas authored Apr 23, 2020
1 parent 21dc0db commit 2da4c2d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rmw/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ if(BUILD_TESTING)
endif()

ament_export_development_version_if_higher_than_manifest("0.8.2-dev")
ament_package(CONFIG_EXTRAS "rmw-extras.cmake")
ament_package(
CONFIG_EXTRAS "rmw-extras.cmake"
CONFIG_EXTRAS_POST "rmw-extras-post.cmake")

install(
DIRECTORY cmake
Expand Down
20 changes: 20 additions & 0 deletions rmw/rmw-extras-post.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2020 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# copied from rmw/rmw-extras-post.cmake

# since a build dependency for the rosidl_runtime_c targets is undesired
# they are being added to the rmw interface library here instead
ament_target_dependencies(rmw::rmw INTERFACE
rosidl_runtime_c)

0 comments on commit 2da4c2d

Please sign in to comment.