strip "-l" from "-lpthread" library, to fix a build failure on ros-ros-comm
@@ -121,6 +121,8 @@ foreach(library ${libraries})
# keep build configuration keywords, target names and absolute libraries as-is
if("${library}" MATCHES "^(debug|optimized|general)$")
list(APPEND @PROJECT_NAME@_LIBRARIES ${library})
+ elseif(${library} MATCHES "^-l")
+ list(APPEND @PROJECT_NAME@_LIBRARIES ${library})
elseif(TARGET ${library})
list(APPEND @PROJECT_NAME@_LIBRARIES ${library})
elseif(IS_ABSOLUTE ${library})
