Try to only build tests on Ubuntu 18.04 for now (mostly because of ImageMagick).
[dcpomatic.git] / cscript
diff --git a/cscript b/cscript
index aa274e8ecef8bf0362e4a97dea2471b9ba4090e9..04d3746eb00e18283f331d0fb04a2d4a5dc301b3 100644 (file)
--- a/cscript
+++ b/cscript
@@ -334,6 +334,11 @@ def option_defaults():
 
 def configure_options(target, options):
     opt = ''
+
+    if target.platform != 'linux' or target.distro != 'ubuntu' or target.version != '18.04':
+        # Currently we only build tests on Ubuntu 18.04
+        opt += ' --disable-tests'
+
     if target.debug:
         opt += ' --enable-debug'
     if target.platform == 'windows':
@@ -341,7 +346,6 @@ def configure_options(target, options):
     elif target.platform == 'linux':
         opt += ' --static-dcpomatic --static-wxwidgets --static-ffmpeg --static-dcp --static-sub --static-cxml'
         if target.distro == 'centos':
-            opt += ' --disable-tests'
             if target.version == '6.5':
                 opt += ' --static-boost --static-xmlpp'
             elif target.version == '7':