From 6987ceeb8129d29312152760209a8c3fc1b857bc Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sun, 20 Jan 2013 15:48:16 +0100 Subject: [PATCH] Add missing settings for boost-thread on MinGW. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2659f5f1..f9c53f40 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,6 +35,10 @@ if(WIN32) # On Windows/MinGW we need to statically link to libraries. # This option is user configurable, but enable it by default on win32. set(STATIC_PKGDEPS_LIBS TRUE) + + # For boost-thread we need two additional settings on win32: + set(Boost_USE_STATIC_LIBS on) + add_definitions(-DBOOST_THREAD_USE_LIB) endif() #=============================================================================== -- 2.30.2