From 9e99813876a6e8d72f81b1fd2cd04c4dc28fb4c5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 21 Jul 2012 22:45:18 +0100 Subject: Various tweaks for Windows builds. --- test/wscript | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/wscript b/test/wscript index cd10983a..136cf36d 100644 --- a/test/wscript +++ b/test/wscript @@ -1,9 +1,17 @@ def configure(conf): + if conf.options.target_windows: + boost_lib_suffix = '-mt' + else: + boost_lib_suffix = '' + conf.check_cxx(fragment = """ #define BOOST_TEST_MODULE Config test\n #include \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_lib_suffix, + uselib_store = 'BOOST_TEST') def build(bld): obj = bld(features = 'cxx cxxprogram') -- cgit v1.2.3