Apply patch from timbyr to fix building with --test.
[ardour.git] / libs / pbd / wscript
index 5cd205030385131aa841ec9f35260237b357f7d7..e0ccb885b10609f3b76e915a7b00a64ea0568b55 100644 (file)
@@ -127,7 +127,7 @@ def build(bld):
     if bld.env['build_target'] == 'x86_64':
         obj.cxxflags += [ '-DUSE_X86_64_ASM' ]
 
-    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
         testobj              = bld(features = 'cxx cxxprogram')
         testobj.source       = '''