Closed GoogleCodeExporter closed 8 years ago
Thanks for the heads up! It's strange that this work fine on most other
distributions.
The right thing to do would be to add ${CMAKE_THREAD_LIBS_INIT} to the list of
libraries, since the name of the thread library may be different depending on
the platform and I'm not using pthreads directly (it must be a dependency of
another library that I'm linking against).
The easiest way of doing that is probably adding this line:
SET(LIBS ${LIBS} ${CMAKE_THREAD_LIBS_INIT})
somewhere after FIND_PACKAGE(Threads). Can you confirm whether that works for
you?
Original comment by cast...@gmail.com
on 29 Nov 2010 at 7:06
yes, the following patch works also
Original comment by hicham.h...@gmail.com
on 29 Nov 2010 at 8:39
Attachments:
This issue was closed by revision r1211.
Original comment by cast...@gmail.com
on 30 Nov 2010 at 8:30
Thanks for testing that! I've committed your changes.
Original comment by cast...@gmail.com
on 30 Nov 2010 at 8:30
Original issue reported on code.google.com by
hicham.h...@gmail.com
on 29 Nov 2010 at 1:51Attachments: