- properly define CMAKE_MAKE_PROGRAM Signed-off-by: SSE4 <tomskside@gmail.com>
diff --git a/build.py b/build.py
index 1d0ce46..4d31d84 100644
--- a/build.py
+++ b/build.py
@@ -24,7 +24,7 @@ def main():
generator = os.environ["CMAKE_GENERATOR"]
command = 'cmake . -G "%s"' % generator
if "CMAKE_MAKE_PROGRAM" in os.environ:
- command += " -D%s" % os.environ["CMAKE_MAKE_PROGRAM"]
+ command += ' -DCMAKE_MAKE_PROGRAM="%s"' % os.environ["CMAKE_MAKE_PROGRAM"]
run(command)
run('cmake --build . --config Release')