Revision 20fa4ce8d89369441dc4f8a74d62611e8dfa36ea authored by Matthew Woehlke on 18 July 2024, 16:07:26 UTC, committed by Matthew Woehlke on 23 July 2024, 16:13:39 UTC
In order to support generation of Common Package Specifications, the
mechanisms CMake uses to export package information need to be made more
abstract. The prior commits began this refactoring; this continues by
(actually) restructuring the classes used to generate the actual export files.
To minimize churn, this introduces virtual base classes and
diamond inheritance in order to separate logic which is format-agnostic
but depends on the export mode (build-tree versus install-tree) from
logic which is format-specific but mode-agnostic.

This could probably be refactored further to use helper classes instead,
and a future commit may do that, however an initial attempt to do that
was proving even more invasive, such that this approach was deemed more
manageable.

While we're at it, add 'const' in more places where possible.
1 parent 6c66340
History
File Mode Size
presets
CTEST_EXAMPLE_MAKEFILE_JOB_SERVER.make -rw-r--r-- 19 bytes
ID_RESERVE.txt -rw-r--r-- 266 bytes
LINKS.txt -rw-r--r-- 430 bytes
OPTIONS_BUILD.txt -rw-r--r-- 6.2 KB
OPTIONS_HELP.txt -rw-r--r-- 4.1 KB
ccmake.1.rst -rw-r--r-- 974 bytes
cmake-buildsystem.7.rst -rw-r--r-- 54.2 KB
cmake-commands.7.rst -rw-r--r-- 4.1 KB
cmake-compile-features.7.rst -rw-r--r-- 11.5 KB
cmake-configure-log.7.rst -rw-r--r-- 9.7 KB
cmake-cxxmodules.7.rst -rw-r--r-- 5.7 KB
cmake-developer.7.rst -rw-r--r-- 21.7 KB
cmake-env-variables.7.rst -rw-r--r-- 3.0 KB
cmake-file-api.7.rst -rw-r--r-- 63.5 KB
cmake-generator-expressions.7.rst -rw-r--r-- 89.2 KB
cmake-generators.7.rst -rw-r--r-- 3.4 KB
cmake-gui.1.rst -rw-r--r-- 1.6 KB
cmake-language.7.rst -rw-r--r-- 21.5 KB
cmake-modules.7.rst -rw-r--r-- 7.6 KB
cmake-packages.7.rst -rw-r--r-- 27.3 KB
cmake-policies.7.rst -rw-r--r-- 20.2 KB
cmake-presets.7.rst -rw-r--r-- 50.3 KB
cmake-properties.7.rst -rw-r--r-- 20.5 KB
cmake-qt.7.rst -rw-r--r-- 11.2 KB
cmake-server.7.rst -rw-r--r-- 206 bytes
cmake-toolchains.7.rst -rw-r--r-- 26.7 KB
cmake-variables.7.rst -rw-r--r-- 30.5 KB
cmake.1.rst -rw-r--r-- 43.2 KB
cpack-generators.7.rst -rw-r--r-- 500 bytes
cpack.1.rst -rw-r--r-- 4.6 KB
ctest.1.rst -rw-r--r-- 67.3 KB

back to top