Try to fix windows build.
authorCarl Hetherington <cth@carlh.net>
Wed, 29 May 2013 22:20:19 +0000 (23:20 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 29 May 2013 22:20:19 +0000 (23:20 +0100)
test/wscript

index 5de1a99cea5cb429bdc4b77e50820b400d507409..f1a508a538a9acb56ddabf48cc5a649fc9872145 100644 (file)
@@ -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')