From 82a10afa0c413f8fc010fbc2626523663c78f2ab Mon Sep 17 00:00:00 2001 From: "Vogel, Rick" Date: Thu, 27 Apr 2023 14:34:31 +0200 Subject: [PATCH] make builds parallel for msvc --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e45367a..6e3db68c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -75,6 +75,11 @@ project(QSkinny HOMEPAGE_URL "https://github.com/uwerat/qskinny" VERSION 0.8.0) +if(MSVC) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP") + message(STATUS "Added parallel build arguments to CMAKE_CXX_FLAGS: ${CMAKE_CXX_FLAGS}") +endif() + qsk_setup_options() include(GNUInstallDirs)