changeset 1944:33fd562a492b

A crack at fixing #1842, SV source package doesn't build on macOS
author Chris Cannam
date Tue, 17 Jul 2018 13:57:33 +0100
parents 9759fcd7ae8a
children 10d4d93bd885
files capnp-regen.pri
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/capnp-regen.pri	Fri Jul 13 16:25:48 2018 +0100
+++ b/capnp-regen.pri	Tue Jul 17 13:57:33 2018 +0100
@@ -5,7 +5,9 @@
 capnpc.commands = capnp compile --src-prefix=$$PWD/piper/capnp -oc++:$$PWD/piper-cpp/vamp-capnp $$capnpc.depends
 
 macx* {
-    capnpc.commands=$$PWD/sv-dependency-builds/osx/bin/capnp -I$$PWD/sv-dependency-builds/osx/include compile --src-prefix=$$PWD/piper/capnp -o$$PWD/sv-dependency-builds/osx/bin/capnpc-c++:$$PWD/piper-cpp/vamp-capnp $$capnpc.depends
+    exists(sv-dependency-builds) {
+        capnpc.commands=$$PWD/sv-dependency-builds/osx/bin/capnp -I$$PWD/sv-dependency-builds/osx/include compile --src-prefix=$$PWD/piper/capnp -o$$PWD/sv-dependency-builds/osx/bin/capnpc-c++:$$PWD/piper-cpp/vamp-capnp $$capnpc.depends
+    }
 }
 
 win32-g++ {