X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=CMakeLists.txt;h=f334f9118c024018179cd8fb433d2525790cce39;hp=d85948c095afbd7713709f0705c5f334a8dddb66;hb=858ae630aec11f2f1300897cc3ca127a4537e598;hpb=6ac6242b25cfbd4df14abe7580adc9d0f4cffe43 diff --git a/CMakeLists.txt b/CMakeLists.txt index d85948c0..f334f911 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,6 +92,10 @@ endif() find_package(Boost 1.42 COMPONENTS filesystem system REQUIRED) +# Find the platform's thread library (needed for C++11 threads). +# This will set ${CMAKE_THREAD_LIBS_INIT} to the correct, OS-specific value. +find_package(Threads REQUIRED) + #=============================================================================== #= System Introspection #------------------------------------------------------------------------------- @@ -124,6 +128,7 @@ configure_file ( set(pulseview_SOURCES main.cpp + pv/application.cpp pv/devicemanager.cpp pv/mainwindow.cpp pv/sigsession.cpp @@ -317,6 +322,7 @@ link_directories(${Boost_LIBRARY_DIRS}) set(PULSEVIEW_LINK_LIBS ${Boost_LIBRARIES} ${QT_LIBRARIES} + ${CMAKE_THREAD_LIBS_INIT} ) if(STATIC_PKGDEPS_LIBS)