Skip to content

Commit

Permalink
Enable multithreaded builds on Visual Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
corporateshark committed Mar 20, 2024
1 parent 400e2b4 commit 834883a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ find_package(Python3 COMPONENTS Interpreter)

message(STATUS "LVK_ROOT_DIR = " ${LVK_ROOT_DIR})

# enable multithreaded builds for Visual Studio
add_compile_options($<$<CXX_COMPILER_ID:MSVC>:/MP>)

if(LVK_DEPLOY_DEPS)
# deploy dependencies during configuration
execute_process(COMMAND ${Python3_EXECUTABLE} deploy_deps.py WORKING_DIRECTORY ${LVK_ROOT_DIR} COMMAND_ERROR_IS_FATAL ANY)
Expand Down

0 comments on commit 834883a

Please sign in to comment.