From c800a80b42d35c45258c315c3d9013d6c07fa8b3 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 19 Jan 2013 18:48:16 +0100 Subject: [PATCH] boost-thread: Use 'thread_win32' on Windows/MinGW. --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.30.2