Skip to content

Commit

Permalink
Added parallel compilation argument (#334)
Browse files Browse the repository at this point in the history
Visual Studio supports parallel compilation but it isn't enabled by default for all projects for some reason.
  • Loading branch information
gentlegiantJGC authored Jan 24, 2025
1 parent 422b1ce commit 3c7691b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ else()
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
endif()

if (MSVC)
add_definitions("/MP")
endif()

include(FetchContent)

# Add zlib
Expand Down

0 comments on commit 3c7691b

Please sign in to comment.