From: Uwe Hermann Date: Sun, 20 Jan 2013 14:48:16 +0000 (+0100) Subject: Add missing settings for boost-thread on MinGW. X-Git-Tag: pulseview-0.1.0~145 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=6987ceeb8129d29312152760209a8c3fc1b857bc Add missing settings for boost-thread on MinGW. --- 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() #===============================================================================