0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +08:00

Problem: CMake parallel build not enabled for C files

Solution: set the equivalent flag
This commit is contained in:
Luca Boccassi 2018-04-29 20:52:33 +01:00
parent 046689bbe7
commit e5eab4b91f

View File

@ -494,6 +494,7 @@ endif ()
if (MSVC)
# Parallel make.
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")
# Compile the static lib with debug information included
string (REGEX REPLACE "/Z." "/Z7" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")