diff --git a/CMakeLists.txt b/CMakeLists.txt index 8779ab2..b6b01cc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,7 +90,7 @@ if(WIN32) endif() if(MSVC) - target_compile_options(gitree PRIVATE /W4 /permissive-) + target_compile_options(gitree PRIVATE /W4 /permissive- /MP) else() target_compile_options(gitree PRIVATE -Wall -Wextra -Wpedantic) endif() diff --git a/run.bat b/run.bat index 98a7349..02c9367 100644 --- a/run.bat +++ b/run.bat @@ -17,7 +17,7 @@ if %errorlevel%==0 ( if not exist build\CMakeCache.txt ( cmake -S . -B build %GENERATOR% -DCMAKE_BUILD_TYPE=Release || exit /b 1 ) -cmake --build build --config Release --parallel || exit /b 1 +cmake --build build --config Release --parallel %NUMBER_OF_PROCESSORS% || exit /b 1 if exist build\bin\gitree.exe ( start "" build\bin\gitree.exe %*