Hi Gianfranco, * Gianfranco Costamagna <locutusofb...@debian.org> [2018-12-05 10:36]:
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})
I think you got me wrong, the current workaround works already.
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
This is what I was asking for and should be fixed in cmake. So I would propose to reopen this and assign to cmake, do you agree?
Cheers Jochen
signature.asc
Description: PGP signature