Skip to content

Commit

Permalink
Fix interface targets that do not have libraries (ros#1013)
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong authored and dirk-thomas committed Aug 1, 2019
1 parent 9d09c2e commit 4a73103
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/catkin_libraries.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ function(catkin_replace_imported_library_targets VAR)
get_target_property(${lib}_imported ${lib} IMPORTED)
if(${${lib}_type} STREQUAL "INTERFACE_LIBRARY")
get_target_property(${lib}_interface_link_libraries ${lib} INTERFACE_LINK_LIBRARIES)
catkin_replace_imported_library_targets(${lib}_resolved_libs ${${lib}_interface_link_libraries})
list(APPEND result ${${lib}_resolved_libs})
if(${${lib}_interface_link_libraries})
catkin_replace_imported_library_targets(${lib}_resolved_libs ${${lib}_interface_link_libraries})
list(APPEND result ${${lib}_resolved_libs})
endif()
elseif(${${lib}_imported})
set(imported_libraries) # empty list
get_target_property(${lib}_imported_location ${lib} IMPORTED_LOCATION)
Expand Down

0 comments on commit 4a73103

Please sign in to comment.