Skip to content

Commit

Permalink
add dummy target to catkin_EXPORTED_TARGETS if empty (fix #453)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Jul 1, 2013
1 parent 936b5fe commit 9e0eab7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ to build some parts of `ROS <http://www.ros.org>`_
Documentation
-------------

http://ros.org/doc/groovy/api/catkin/html/
http://ros.org/doc/api/catkin/html/
8 changes: 8 additions & 0 deletions cmake/catkinConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ endforeach()
list_insert_in_workspace_order(catkin_INCLUDE_DIRS ${catkin_INCLUDE_DIRS})
list_insert_in_workspace_order(catkin_LIBRARY_DIRS ${catkin_LIBRARY_DIRS})

# add dummy target to catkin_EXPORTED_TARGETS if empty
if(NOT catkin_EXPORTED_TARGETS)
if(NOT TARGET _catkin_empty_exported_target)
add_custom_target(_catkin_empty_exported_target)
endif()
list(APPEND catkin_EXPORTED_TARGETS _catkin_empty_exported_target)
endif()

# decrement recursion counter
math(EXPR _CATKIN_FIND_ "${_CATKIN_FIND_} - 1")

Expand Down

0 comments on commit 9e0eab7

Please sign in to comment.