From a9a88468dcac5f2de138f9dc4ffd0935d6927e06 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 28 Jan 2014 17:54:30 +0100 Subject: [PATCH] test/CMakeLists.txt: Fix MinGW build of the tests. --- test/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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( -- 2.30.2