Skip to content

Commit

Permalink
src/analysis: use unity builds if ENABLE_UNITY_BUILDS
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Nov 30, 2024
1 parent 22f8168 commit 5eda51b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/analysis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,8 @@ add_library(qgis_analysis ${LIBRARY_TYPE} ${QGIS_ANALYSIS_SRCS} ${QGIS_ANALYSIS_

target_precompile_headers(qgis_analysis PRIVATE $<$<COMPILE_LANGUAGE:CXX>:${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)

Expand Down

0 comments on commit 5eda51b

Please sign in to comment.