Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a871660

Browse files
committed
cmake: add flag for parallel MSVC builds (/MP)
1 parent dc15935 commit a871660

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ if (MSVC)
1919
option (LINK_CPP_STATICALLY "MSVC only, link standard library statically (/MT and /MTd)" OFF)
2020

2121
add_definitions (-DUNICODE -D_UNICODE)
22+
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
2223
set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /Oi /GS-")
2324
set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Oi /GS-")
2425
if (LINK_CPP_STATICALLY)

0 commit comments

Comments
 (0)