summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-06-11 13:07:10 +0000
committerCarl Hetherington <carl@carlh.net>2012-06-11 13:07:10 +0000
commit366b7ac36baecba48e59e9d96f8b2fd27633957b (patch)
tree6616219c6343adae8a9cd7cd15677944e75eb126
parent960de7306f8573f6cb698cf031fad46daa3c741d (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--wscript5
1 files changed, 2 insertions, 3 deletions
diff --git a/wscript b/wscript
index c274ef93bf..f42bc15af6 100644
--- a/wscript
+++ b/wscript
@@ -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)