From 5eda51b37f42ad52dfcd306ee0cad6c5945fdf29 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sat, 30 Nov 2024 14:57:05 +0100 Subject: [PATCH] src/analysis: use unity builds if ENABLE_UNITY_BUILDS --- src/analysis/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/analysis/CMakeLists.txt b/src/analysis/CMakeLists.txt index 18d503154375..13f228560f15 100644 --- a/src/analysis/CMakeLists.txt +++ b/src/analysis/CMakeLists.txt @@ -522,6 +522,8 @@ add_library(qgis_analysis ${LIBRARY_TYPE} ${QGIS_ANALYSIS_SRCS} ${QGIS_ANALYSIS_ target_precompile_headers(qgis_analysis PRIVATE $<$:${CMAKE_SOURCE_DIR}/src/core/qgis.h>) +set_target_properties(qgis_analysis PROPERTIES UNITY_BUILD ${ENABLE_UNITY_BUILDS}) + # require c++17 target_compile_features(qgis_analysis PRIVATE cxx_std_17)