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()