Fix interface targets that do not have libraries
@@ -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)
+ 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)
