mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-21 03:12:41 +08:00
Enabled parallel build under msvc
This commit is contained in:
parent
5ba95f6816
commit
b85a666f72
@ -37,9 +37,9 @@ if(NOT CMAKE_CXX_STANDARD)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
endif()
|
||||
|
||||
# make sure __cplusplus is defined when using msvc
|
||||
# make sure __cplusplus is defined when using msvc and enable parallel build
|
||||
if(MSVC)
|
||||
string(APPEND CMAKE_CXX_FLAGS " /Zc:__cplusplus")
|
||||
string(APPEND CMAKE_CXX_FLAGS " /Zc:__cplusplus /MP")
|
||||
endif()
|
||||
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
|
Loading…
Reference in New Issue
Block a user