From 601dc8b2498191f9be69f8dd4c3aea26e65fdf5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Sun, 30 Jul 2023 00:24:22 +0300 Subject: [PATCH] Enable parallel builds for msvc --- src/libtriton/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libtriton/CMakeLists.txt b/src/libtriton/CMakeLists.txt index f029bfe1b..72b346156 100644 --- a/src/libtriton/CMakeLists.txt +++ b/src/libtriton/CMakeLists.txt @@ -290,6 +290,11 @@ if(MSVC AND MSVC_STATIC) set_property(TARGET triton PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") endif() +# Enable parallel building for msvc. +if(MSVC) + target_compile_options(triton PRIVATE /MP) +endif() + if(WIN32 AND BUILD_SHARED_LIBS) target_compile_definitions(triton PRIVATE BUILDING_DLL) endif()