>catkin upstream would prefer to add -pthread instead of -lpthread to the 
>compiler flags. See the discussion here:
>
>https://github.com/ros/catkin/issues/856
>
>Would this be possible?

what about: 
|   elseif(${library} MATCHES "^-l")  |
|

  list(APPEND @PROJECT_NAME@_LIBRARIES ${library}) 
|   elseif(${library} MATCHES "^-p")  |
|

  list(APPEND @PROJECT_NAME@_LIBRARIES ${library})  

this way you can strip them both.BTW, -lpthread is generally wrong, and useful 
only to fix underlinking.The right thing to do is to add "-pthread" to CFLAGS, 
not to LDFLAGS
G.
  

Reply via email to