From: Uwe Hermann Date: Tue, 28 Jan 2014 16:54:30 +0000 (+0100) Subject: test/CMakeLists.txt: Fix MinGW build of the tests. X-Git-Tag: pulseview-0.2.0~106 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=a9a88468dcac5f2de138f9dc4ffd0935d6927e06;hp=c02f1e09ee27e5e39a629c607d4b0e14484ae6aa test/CMakeLists.txt: Fix MinGW build of the tests. --- diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index ba1cce29..57ca26f0 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -131,7 +131,11 @@ if(ENABLE_DECODE) add_definitions(-DENABLE_DECODE) endif() +# On MinGW we need to use static linking. +if(NOT WIN32) add_definitions(-DBOOST_TEST_DYN_LINK) +endif() + add_definitions(${QT_DEFINITIONS}) include_directories(