Protection against double -l
@@ -270,8 +270,10 @@ function(_catkin_package)
catkin_filter_libraries_for_build_configuration(libraries ${PKG_CONFIG_LIBRARIES})
foreach(library ${libraries})
if(NOT IS_ABSOLUTE ${library})
+ if(NOT ${library} MATCHES "^-l")
set(library "-l${library}")
endif()
+ endif()
list_append_deduplicate(PKG_CONFIG_LIBRARIES_WITH_PREFIX ${library})
endforeach()
