mirror of
https://github.com/curl/curl.git
synced 2026-05-14 23:26:21 +03:00
cmake: Use multithreaded compilation on VS 2008+
Multithreaded compilation has been supported since at least VS 2005 and been robustly stable since at least VS 2008 Closes https://github.com/curl/curl/pull/7109
This commit is contained in:
parent
458a2d85f3
commit
b4bed24459
1 changed files with 5 additions and 0 deletions
|
|
@ -1284,6 +1284,11 @@ if(MSVC)
|
|||
else()
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4")
|
||||
endif()
|
||||
|
||||
# Use multithreaded compilation on VS 2008+
|
||||
if(MSVC_VERSION GREATER_EQUAL 1500)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(CURL_WERROR)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue