]> sigrok.org Git - pulseview.git/commitdiff
Added missing pthread linkage in tests
authorArkadiusz Miśkiewicz <redacted>
Sat, 9 Mar 2013 16:35:20 +0000 (16:35 +0000)
committerJoel Holdsworth <redacted>
Mon, 11 Mar 2013 20:41:35 +0000 (20:41 +0000)
test/CMakeLists.txt

index 5fff12b044748cc93f52e7834329e9e5bd84b0b7..fdf674f50f6449b330774ec68e0c5856c8c59baf 100644 (file)
 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ##
 
+# Find the platform's thread library (needed for boost-thread).
+# This will set ${CMAKE_THREAD_LIBS_INIT} to the correct, OS-specific value.
+find_package(Threads)
+
 find_package(Boost 1.46 COMPONENTS unit_test_framework REQUIRED)
 
 set(pulseview_TEST_SOURCES
@@ -35,6 +39,7 @@ include_directories(
 
 set(PULSEVIEW_LINK_LIBS
        ${Boost_LIBRARIES}
+       ${CMAKE_THREAD_LIBS_INIT}
 )
 
 add_executable(pulseview-test