Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Commit

Permalink
Enable multi-processor compilation (microsoft#890)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris0x44 authored and BillyONeal committed Oct 9, 2018
1 parent 40eb6d2 commit 81eb4cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Release/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
set(WARNINGS)
set(CMAKE_STATIC_LINKER_FLAGS "${CMAKE_STATIC_LINKER_FLAGS} /ignore:4264")
add_compile_options(/bigobj)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MP")
set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} /MP")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MP")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /MP")

if (WINDOWS_STORE OR WINDOWS_PHONE)
add_compile_options(/ZW)
endif()
Expand Down

0 comments on commit 81eb4cf

Please sign in to comment.