Apply patch from timbyr to fix building with --test.
[ardour.git] / libs / audiographer / wscript
index 14ddcd3d3c5e8c8949ee72d12a890291d611f503..66f4e80b724171c39e564617b259cb2497eebe77 100644 (file)
@@ -78,7 +78,7 @@ def build(bld):
     audiographer.install_path   = os.path.join(bld.env['LIBDIR'], 'ardour3')
 
 
-    if bld.is_defined('BUILD_TESTS') and bld.is_defined('HAVE_CPPUNIT'):
+    if bld.env['BUILD_TESTS'] and bld.is_defined('HAVE_CPPUNIT'):
         # Unit tests
         obj              = bld(features = 'cxx cxxprogram')
         obj.source       = '''