diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-07-21 22:45:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-07-21 22:45:18 +0100 |
| commit | 9e99813876a6e8d72f81b1fd2cd04c4dc28fb4c5 (patch) | |
| tree | d9e403df7dff35034724e5ac959ad1014c465bcd /test/wscript | |
| parent | 78cb780e8cf266e27b0adf6714b9d23f8fbcd796 (diff) | |
Various tweaks for Windows builds.
Diffstat (limited to 'test/wscript')
| -rw-r--r-- | test/wscript | 10 |
1 files changed, 9 insertions, 1 deletions
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 <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_lib_suffix, + uselib_store = 'BOOST_TEST') def build(bld): obj = bld(features = 'cxx cxxprogram') |
