From da90319d2d04e5226d2363454c80a3c6cfe132e2 Mon Sep 17 00:00:00 2001 From: Stefan Forstenlechner Date: Wed, 1 May 2024 13:08:05 +0200 Subject: [PATCH] Improve build time with MSVC `/MP` = Build with multiple processes see https://learn.microsoft.com/en-us/cpp/build/reference/mp-build-with-multiple-processes?view=msvc-170 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ef1863c3..01d8038a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -395,7 +395,7 @@ if (MSVC) if(MSVC_TOOLSET_VERSION LESS 141) message(FATAL_ERROR "Only Microsoft Visual Studio 17 and newer are supported!") endif() - add_compile_options(/permissive- /utf-8) + add_compile_options(/permissive- /utf-8 /MP) if(IS_DEBUG_BUILD) add_compile_options(/Zf) if(MSVC_TOOLSET_VERSION GREATER 141)