cmake: Use multiprocessor compilation on Windows (#1605)

master
Colin Edwards 2019-01-30 22:57:42 -06:00 committed by GitHub
parent 06081e799a
commit cac03e3d76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@ if(WIN32)
endif()
if(MSVC)
add_compile_options("/MP")
set(CMAKE_C_FLAGS_DEBUG "/DDEBUG=1 /D_DEBUG=1 ${CMAKE_C_FLAGS_DEBUG}")
set(CMAKE_CXX_FLAGS_DEBUG "/DDEBUG=1 /D_DEBUG=1 ${CMAKE_C_FLAGS_DEBUG}")