From 7d33d4b2ddeafa672761a5880ec33bdff452504d Mon Sep 17 00:00:00 2001 From: leejet Date: Sat, 18 Apr 2026 15:44:43 +0800 Subject: [PATCH] chore: enable MSVC parallel compilation with /MP (#1438) --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1bce6ca4..e54fc988 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,10 @@ endif() if (MSVC) add_compile_definitions(_CRT_SECURE_NO_WARNINGS) add_compile_definitions(_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING) + add_compile_options( + $<$:/MP> + $<$:/MP> + ) endif() set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)