make the prefix options optional; fix SVN for the case that the parent folder does...
[mass-build.git] / build_system.py
index bdca10aa66b144cffb39c4327930b89e47898fc6..1c0411bc02739d78068b3ebdafe0ec0dc1a941cc 100644 (file)
@@ -25,9 +25,9 @@ class CMake:
                if waitAfterConfig:
                        raw_input('Configuration done. Hit "Enter" to build the project. ')
                # run compilation
-               subprocess.check_call(self.config['buildCmdPrefix'] + ['make', '-j'+str(self.config['jobs'])])
+               subprocess.check_call(self.config.get('buildCmdPrefix', []) + ['make', '-j'+str(self.config['jobs'])])
                # run installation
-               subprocess.check_call(self.config['installCmdPrefix'] + ['make', 'install'])
+               subprocess.check_call(self.config.get('installCmdPrefix', []) + ['make', 'install'])
 
 # if auto-debuild is available, provide a wrapper for it
 try: