Compile C++ code with /MP on MSVC

This reduces the build time from 32.8s to 28.6s for clean builds on my PC.
This commit is contained in:
Oliver Hamlet
2025-07-22 19:56:21 +01:00
parent 5316df055e
commit 3d4320c2c9
+4
View File
@@ -20,6 +20,10 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(MSVC)
add_compile_options("/MP")
endif()
##############################
# External Projects
##############################