From: Uwe Hermann Date: Sat, 19 Jan 2013 17:48:16 +0000 (+0100) Subject: boost-thread: Use 'thread_win32' on Windows/MinGW. X-Git-Tag: pulseview-0.1.0~158 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=c800a80b42d35c45258c315c3d9013d6c07fa8b3;ds=sidebyside boost-thread: Use 'thread_win32' on Windows/MinGW. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b7089e8..ba28408f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,13 @@ if(WIN32) set(BOOST_ROOT /usr/local) endif() +if(WIN32) +# On Windows/MinGW the we need to use 'thread_win32' instead of 'thread'. +# The library is named libboost_thread_win32* (not libboost_thread*). +find_package(Boost 1.46 COMPONENTS system thread_win32) +elseif() find_package(Boost 1.46 COMPONENTS system thread) +endif() #=============================================================================== #= Config Header