From 6ede6d49d39855aa91d0141ebd65a701261ea346 Mon Sep 17 00:00:00 2001 From: Dirk Thomas Date: Wed, 19 Jul 2017 12:28:37 -0700 Subject: [PATCH] remove workaround using -l: necessary for older pkg-config versions --- cmake/catkin_package.cmake | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cmake/catkin_package.cmake b/cmake/catkin_package.cmake index 07613ce85..448624d6e 100644 --- a/cmake/catkin_package.cmake +++ b/cmake/catkin_package.cmake @@ -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})