Slightly hacky fix for -114 errors during 3D encodes (#2173).
[dcpomatic.git] / wscript
diff --git a/wscript b/wscript
index af6d66b507e4c3eb7905c8d3d8224b06b67abff7..ce24e866684620109f1b3e1e047762c9b8f8ae20 100644 (file)
--- a/wscript
+++ b/wscript
@@ -676,7 +676,8 @@ def create_version_cc(version, cxx_flags):
 def post(ctx):
     if ctx.cmd == 'install' and ctx.env.TARGET_LINUX:
         ctx.exec_command('/sbin/ldconfig')
-        ctx.exec_command('setcap "cap_dac_override+ep cap_sys_admin+ep" %s/bin/dcpomatic2_disk_writer' % ctx.options.prefix)
+        if ctx.env.ENABLE_DISK:
+            ctx.exec_command('setcap "cap_dac_override+ep cap_sys_admin+ep" %s/bin/dcpomatic2_disk_writer' % ctx.options.prefix)
 
 def pot(bld):
     bld.recurse('src')