Enable multi-processor compilation on MSVC

develop
Anuradha Dissanayake 2013-01-19 11:05:41 +13:00
parent f5a0644b45
commit 35f4984b5f
1 changed files with 1 additions and 1 deletions

@ -113,7 +113,7 @@ IF(UNIX)
SET(CMAKE_C_FLAGS "-fvisibility=hidden -m32 -march=i686 -mtune=generic") SET(CMAKE_C_FLAGS "-fvisibility=hidden -m32 -march=i686 -mtune=generic")
ELSEIF(MSVC) ELSEIF(MSVC)
# for msvc, tell it to always use 8-byte pointers to member functions to avoid confusion # for msvc, tell it to always use 8-byte pointers to member functions to avoid confusion
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /vmg /vmm") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /vmg /vmm /MP")
ENDIF() ENDIF()
# use shared libraries for protobuf # use shared libraries for protobuf