From 6a28ab8920721ee103fd71a90b1b0e09379ea0b5 Mon Sep 17 00:00:00 2001 From: tomwillow Date: Mon, 23 Dec 2024 22:46:25 +0800 Subject: [PATCH] [compile option] add /MP --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c8b3ca7..e1c9552 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,8 @@ add_compile_options("$<$:/utf-8>") add_compile_options(-WX) if(MSVC) + add_compile_options(/MP) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MT") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MT")