Skip to content

Commit

Permalink
Enable parallel builds for msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
ZehMatt committed Jul 29, 2023
1 parent e2faa65 commit 601dc8b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libtriton/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,11 @@ if(MSVC AND MSVC_STATIC)
set_property(TARGET triton PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>: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()
Expand Down

0 comments on commit 601dc8b

Please sign in to comment.