Skip to content

Commit 7d33d4b

Browse files
authored
chore: enable MSVC parallel compilation with /MP (#1438)
1 parent 3c99f70 commit 7d33d4b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ endif()
1111
if (MSVC)
1212
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
1313
add_compile_definitions(_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING)
14+
add_compile_options(
15+
$<$<COMPILE_LANGUAGE:C>:/MP>
16+
$<$<COMPILE_LANGUAGE:CXX>:/MP>
17+
)
1418
endif()
1519

1620
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

0 commit comments

Comments
 (0)