mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
Use is_defined to check for HAVE_* variables set by checks.
Note that conf.define('FOO', 1) will NOT set conf.env['FOO'].
git-svn-id: svn://localhost/ardour2/branches/3.0@10164 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
c1ef7b14a3
commit
4ffe8418e3
8 changed files with 23 additions and 21 deletions
|
|
@ -127,7 +127,7 @@ def build(bld):
|
|||
if bld.env['build_target'] == 'x86_64':
|
||||
obj.cxxflags += [ '-DUSE_X86_64_ASM' ]
|
||||
|
||||
if bld.env['BUILD_TESTS'] and bld.env['HAVE_CPPUNIT']:
|
||||
if bld.env['BUILD_TESTS'] and bld.is_defined('HAVE_CPPUNIT'):
|
||||
# Unit tests
|
||||
testobj = bld(features = 'cxx cxxprogram')
|
||||
testobj.source = '''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue