Centos build fixes.
[dcpomatic.git] / cscript
diff --git a/cscript b/cscript
index 9d1605b2fcd43f0d2256b4647fa3c58034bc7f03..7a61336455c9d5848c102db0c7badca2664f7a1e 100644 (file)
--- a/cscript
+++ b/cscript
@@ -169,7 +169,10 @@ def build(target, options):
             if target.version == 'unstable':
                 cmd += ' --debian-unstable'
         elif target.distro == 'centos':
-            cmd += ' --target-centos'
+            if target.version == '6.5':
+                cmd += ' --target-centos-6'
+            elif target.version == '7':
+                cmd += ' --target-centos-7'
 
     target.command(cmd)
     target.command('./waf')