diff options
author | Benjamin Bennett <benbennett@gmail.com> | 2015-12-07 13:54:02 -0600 |
---|---|---|
committer | Benjamin Bennett <benbennett@gmail.com> | 2015-12-07 13:54:02 -0600 |
commit | 9fc4d90cab7919d5a76f612bd98a65faee02df75 (patch) | |
tree | 2bc239a45fc9099f9eaa631687788e06e70b029d /cmake | |
parent | 9bd74b7f25b45b253f46025d7300a17df58d213f (diff) | |
download | protobuf-9fc4d90cab7919d5a76f612bd98a65faee02df75.tar.gz protobuf-9fc4d90cab7919d5a76f612bd98a65faee02df75.tar.bz2 protobuf-9fc4d90cab7919d5a76f612bd98a65faee02df75.zip |
MSVC MP flag to build with multiple processes in visual studio.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 9de6341a..15ae457a 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -115,6 +115,8 @@ else (protobuf_BUILD_SHARED_LIBS) endif (protobuf_BUILD_SHARED_LIBS) if (MSVC) + # Build with multiple processes + add_definitions(/MP) add_definitions(/wd4244 /wd4267 /wd4018 /wd4355 /wd4800 /wd4251 /wd4996 /wd4146 /wd4305) string(REPLACE "/" "\\" PROTOBUF_SOURCE_WIN32_PATH ${protobuf_SOURCE_DIR}) string(REPLACE "/" "\\" PROTOBUF_BINARY_WIN32_PATH ${protobuf_BINARY_DIR}) |