diff options
author | Carl Hetherington <carl@carlh.net> | 2012-06-11 13:07:10 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-06-11 13:07:10 +0000 |
commit | 366b7ac36baecba48e59e9d96f8b2fd27633957b (patch) | |
tree | 6616219c6343adae8a9cd7cd15677944e75eb126 | |
parent | 960de7306f8573f6cb698cf031fad46daa3c741d (diff) |
Try to make cppunit mandatory if --test is passed to
configure.
git-svn-id: svn://localhost/ardour2/branches/3.0@12653 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | wscript | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -559,7 +559,6 @@ def configure(conf): okmsg = 'ok', errmsg = 'too old\nPlease install boost version 1.39 or higher.') - autowaf.check_pkg(conf, 'cppunit', uselib_store='CPPUNIT', atleast_version='1.12.0', mandatory=False) autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB', atleast_version='2.2') autowaf.check_pkg(conf, 'gthread-2.0', uselib_store='GTHREAD', atleast_version='2.2') autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.14.0') @@ -617,8 +616,8 @@ def configure(conf): if opts.denormal_exception: conf.define('DEBUG_DENORMAL_EXCEPTION', 1) conf.env['DEBUG_DENORMAL_EXCEPTION'] = True - if not conf.is_defined('HAVE_CPPUNIT'): - conf.env['BUILD_TESTS'] = False + if opts.build_tests: + autowaf.check_pkg(conf, 'cppunit', uselib_store='CPPUNIT', atleast_version='1.12.0', mandatory=True) set_compiler_flags (conf, Options.options) |