Use -j with jom
mkdir build
cd build
-set "LIB=%LIBRARY_LIB%;%LIB%"
-
cmake.exe .. -G "NMake Makefiles JOM" ^
-DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" ^
-DCMAKE_PREFIX_PATH="%LIBRARY_PREFIX%" ^
- -DCMAKE_LIBRARY_PATH="%LIBRARY_LIB%" ^
-DCMAKE_BUILD_TYPE=Release ^
-DBUILD_TESTING=OFF ^
|| goto :error
@@ -14,9 +11,9 @@ cmake.exe .. -G "NMake Makefiles JOM" ^
:: Re-add above when CUDA is available
:: -DCUDA_TOOLKIT_ROOT_DIR="%LIBRARY_BIN%" ^
-jom install || goto :error
-jom PythonInstall || goto :error
-jom install || goto :error
+jom -j %NUMBER_OF_PROCESSORS% || goto :error
+jom -j %NUMBER_OF_PROCESSORS% install || goto :error
+jom -j %NUMBER_OF_PROCESSORS% PythonInstall || goto :error
:: Workaround overlinking warnings
copy %SP_DIR%\simtk\openmm\_openmm* %LIBRARY_BIN% || goto :error
