tests: remove reliance of other tests on WITH_TESTS
refs #3609
Change-Id: I8fa858d207cd060cfcda7c86af56dac4afb48fe1
diff --git a/wscript b/wscript
index ffa6052..d310abd 100644
--- a/wscript
+++ b/wscript
@@ -109,14 +109,17 @@
conf.check_cxx(header_name='valgrind/valgrind.h', define_name='HAVE_VALGRIND', mandatory=False)
- boost_libs = 'system chrono program_options thread log log_setup'
if conf.options.with_tests:
conf.env['WITH_TESTS'] = 1
conf.define('WITH_TESTS', 1)
- boost_libs += ' unit_test_framework'
if conf.options.with_other_tests:
conf.env['WITH_OTHER_TESTS'] = 1
+ conf.define('WITH_OTHER_TESTS', 1)
+
+ boost_libs = 'system chrono program_options thread log log_setup'
+ if conf.options.with_tests or conf.options.with_other_tests:
+ boost_libs += ' unit_test_framework'
conf.check_boost(lib=boost_libs, mt=True)
if conf.env.BOOST_VERSION_NUMBER < 105400: