mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
Make unity builds conditioned by ENABLE_UNITY_BUILDS that defaults to OFF
This commit is contained in:
parent
ddacd8ab9e
commit
779d5343fc
@ -1080,6 +1080,8 @@ endif()
|
||||
# whether to install required system libs in the output package
|
||||
set(QGIS_INSTALL_SYS_LIBS TRUE CACHE BOOL "If set to TRUE install all required system libs in the output package")
|
||||
|
||||
option(ENABLE_UNITY_BUILDS "Enable Unity builds, that is compiling several .cpp files in the same compilation unit (EXPERIMENTAL. Not recommended for production builds)" OFF)
|
||||
|
||||
#############################################################
|
||||
# Python
|
||||
|
||||
|
@ -2341,7 +2341,7 @@ add_library(qgis_core ${LIBRARY_TYPE} ${QGIS_CORE_SRCS} ${QGIS_CORE_HDRS} ${QGIS
|
||||
|
||||
target_precompile_headers(qgis_core PRIVATE $<$<COMPILE_LANGUAGE:CXX>:qgis.h>)
|
||||
|
||||
set_target_properties(qgis_core PROPERTIES UNITY_BUILD ON)
|
||||
set_target_properties(qgis_core PROPERTIES UNITY_BUILD ${ENABLE_UNITY_BUILDS})
|
||||
|
||||
# Exclude below files because they include tiny_gltf.h with different #define settings
|
||||
set_source_files_properties(tiledscene/qgsgltfutils.cpp
|
||||
|
Loading…
x
Reference in New Issue
Block a user