]> sigrok.org Git - pulseview.git/commitdiff
test/CMakeLists.txt: Fix MinGW build of the tests.
authorUwe Hermann <redacted>
Tue, 28 Jan 2014 16:54:30 +0000 (17:54 +0100)
committerUwe Hermann <redacted>
Tue, 28 Jan 2014 16:54:30 +0000 (17:54 +0100)
test/CMakeLists.txt

index ba1cce29c35099b0e05c552e1ce6342a7711d3db..57ca26f0026de927c6fb60a0c77e3fd2271ed415 100644 (file)
@@ -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(