diff options
author | Matias N. Goldberg <dark_sylinc@yahoo.com.ar> | 2021-05-20 15:11:57 -0300 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2021-05-21 03:37:37 -0400 |
commit | b4bed24459b69156faae9f2e323d78ffe8f5a245 (patch) | |
tree | ff013292a97bf79cb352aaaca3a8efa8943b2a1e /CMakeLists.txt | |
parent | 458a2d85f3a25d6cfb2bcc19675d75b7340bd358 (diff) | |
download | curl-b4bed24459b69156faae9f2e323d78ffe8f5a245.tar.gz |
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
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 549a38a6d..63944877a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) |