From 4df39833aaebe210918791ad5b9b5ac66440eed5 Mon Sep 17 00:00:00 2001 From: Deception666 <29422981+Deception666@users.noreply.github.com> Date: Tue, 21 Jul 2026 19:13:38 -0500 Subject: [PATCH] Build With Multiple Processes When MSVC Is Detected - add the /MP option to the command line to help decrease compilation times. this will only impact solutions that target visual studio. this compile option will only be added to the command line if QtADS is the main project detected; otherwise, it is assumed that QtADS is being sourced as an external 3rd party library to a larger compilation solution that defines its own compilation requirements. - debug full rebuild of all projects without /MP built 80 seconds. same rebuild with /MP built in 20 seconds. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2cd9d08c7..46b18d3da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,6 +52,10 @@ else() set(ads_PlatformDir "${ADS_PLATFORM_DIR}") endif() +if(QtADS_IS_TOP_LEVEL) + add_compile_options($<${MSVC}:/MP>) +endif() + add_subdirectory(src) if(BUILD_EXAMPLES)