summaryrefslogtreecommitdiff
path: root/test/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-29 23:20:19 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-29 23:20:19 +0100
commitb8a5a3e32ca4459cc0ce9715d905210f8688cb1c (patch)
tree899488ef82d2728ce288cde62c441d23c62947b2 /test/wscript
parentf1633689739cc77f81e14365c862b5832d19da76 (diff)
Try to fix windows build.
Diffstat (limited to 'test/wscript')
-rw-r--r--test/wscript6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/wscript b/test/wscript
index 5de1a99ce..f1a508a53 100644
--- a/test/wscript
+++ b/test/wscript
@@ -1,9 +1,13 @@
def configure(conf):
+ boost_test_suffix=''
+ if conf.env.TARGET_WINDOWS:
+ boost_test_suffix='-mt'
+
conf.check_cxx(fragment = """
#define BOOST_TEST_MODULE Config test\n
#include <boost/test/unit_test.hpp>\n
int main() {}
- """, msg = 'Checking for boost unit testing library', lib = 'boost_unit_test_framework', uselib_store = 'BOOST_TEST')
+ """, msg = 'Checking for boost unit testing library', lib = 'boost_unit_test_framework%s' % boost_test_suffix, uselib_store = 'BOOST_TEST')
def build(bld):
obj = bld(features = 'cxx cxxprogram')