From b85a666f7243d102b735ae9b0cf0a2835b71f4cd Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 19 Jul 2021 16:33:31 +0300 Subject: [PATCH] Enabled parallel build under msvc --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a55cfde2..64e773ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,9 +37,9 @@ if(NOT CMAKE_CXX_STANDARD) set(CMAKE_CXX_STANDARD_REQUIRED ON) endif() -# make sure __cplusplus is defined when using msvc +# make sure __cplusplus is defined when using msvc and enable parallel build if(MSVC) - string(APPEND CMAKE_CXX_FLAGS " /Zc:__cplusplus") + string(APPEND CMAKE_CXX_FLAGS " /Zc:__cplusplus /MP") endif() set(CMAKE_CXX_EXTENSIONS OFF)