]> sigrok.org Git - pulseview.git/commit
buildsystem: Link against the platform's thread library
authorAlexandru Gagniuc <redacted>
Tue, 15 Jan 2013 22:09:57 +0000 (16:09 -0600)
committerUwe Hermann <redacted>
Thu, 24 Jan 2013 21:50:43 +0000 (22:50 +0100)
commit3933e8a901740de80133f15daf3d114867c08e0c
tree3941f51a58884a91a89f5a70b0f2516f8a9b1cbe
parentc43d09e03d3e50aabb05f8026fa895a8e6aeca95
buildsystem: Link against the platform's thread library

At least on Linux, boost-thread depends on pthread. The linking is not
automatic, and users have had issues with this.

We need to link against the platform's thread library, as it is needed for
boost-thread. CMake takes care of getting the exact settings to be passed
to the linker for us with ${CMAKE_THREAD_LIBS_INIT}.

This fixes bug #42.

Signed-off-by: Alexandru Gagniuc <redacted>
CMakeLists.txt