https://github.com/Kitware/CMake
Revision df08c37a42379cc73dc2dd610a5b87573b24d12e authored by Brad King on 02 February 2024, 12:50:49 UTC, committed by Brad King on 02 February 2024, 14:39:13 UTC
Sources that will be scanned for C++ module dependencies need to be
excluded from unity builds.  We need to compute compile features in
order to know which sources will be scanned.  Unity build and PCH
sources can be added afterward without changing the compile features.

This re-implements commit 76b5383123 (cmGlobalGenerator: add unity
sources after computing target compile features, 2024-01-01,
v3.28.2~17^2~1) using a simpler approach that also preserves support for
PCH with Unity builds.

Issue: #25650
Co-authored-by: Ben Boeckel <ben.boeckel@kitware.com>
1 parent 004c3c3
History
Tip revision: df08c37a42379cc73dc2dd610a5b87573b24d12e authored by Brad King on 02 February 2024, 12:50:49 UTC
cmGlobalGenerator: Add unity/pch sources after computing compile features
Tip revision: df08c37
File Mode Size
.github
.gitlab
Auxiliary
Help
Licenses
Modules
Packaging
Source
Templates
Tests
Utilities
.clang-format -rw-r--r-- 1.4 KB
.clang-tidy -rw-r--r-- 2.1 KB
.codespellrc -rw-r--r-- 644 bytes
.editorconfig -rw-r--r-- 164 bytes
.gitattributes -rw-r--r-- 1.2 KB
.gitignore -rw-r--r-- 504 bytes
.gitlab-ci.yml -rw-r--r-- 38.5 KB
.hooks-config -rw-r--r-- 418 bytes
CMakeCPack.cmake -rw-r--r-- 9.9 KB
CMakeCPackOptions.cmake.in -rw-r--r-- 12.0 KB
CMakeGraphVizOptions.cmake -rw-r--r-- 153 bytes
CMakeLists.txt -rw-r--r-- 21.2 KB
CMakeLogo.gif -rw-r--r-- 4.4 KB
CONTRIBUTING.rst -rw-r--r-- 3.0 KB
CTestConfig.cmake -rw-r--r-- 566 bytes
CTestCustom.cmake.in -rw-r--r-- 7.3 KB
CompileFlags.cmake -rw-r--r-- 5.0 KB
Copyright.txt -rw-r--r-- 5.3 KB
DartConfig.cmake -rw-r--r-- 374 bytes
README.rst -rw-r--r-- 3.8 KB
bootstrap -rwxr-xr-x 64.4 KB
cmake_uninstall.cmake.in -rw-r--r-- 794 bytes
configure -rwxr-xr-x 99 bytes

README.rst

back to top