remove workaround using -l:<libpath> necessary for older pkg-config versions
@@ -269,12 +269,7 @@ function(_catkin_package)
set(PKG_CONFIG_LIBRARIES_WITH_PREFIX "")
catkin_filter_libraries_for_build_configuration(libraries ${PKG_CONFIG_LIBRARIES})
foreach(library ${libraries})
- if(IS_ABSOLUTE ${library})
- get_filename_component(suffix ${library} EXT)
- if(NOT "${suffix}" STREQUAL "${CMAKE_STATIC_LIBRARY_SUFFIX}")
- set(library "-l:${library}")
- endif()
- else()
+ if(NOT IS_ABSOLUTE ${library})
set(library "-l${library}")
endif()
list_append_deduplicate(PKG_CONFIG_LIBRARIES_WITH_PREFIX ${library})
