diff --git a/scripts/cmake/packaging/package.sh.in b/scripts/cmake/packaging/package.sh.in
index 8a4617a3f5f6a623d45d06690433d96b3b49aca2..cf6690c1f0341511ac939134f1e3014b6cc2ea42 100644
--- a/scripts/cmake/packaging/package.sh.in
+++ b/scripts/cmake/packaging/package.sh.in
@@ -1,4 +1,4 @@
 #!/bin/sh
-cmake --build . --config Release -- -j $(nproc)
+cmake --build . --config Release -- -j ${NUM_PROCESSORS}
 cmake -DPRE_INSTALL_RUN=ON .
 cmake --build . --target package --config Release