cmExperimental: gate build database support behind a flag

Given that the feature currently only supports C++ sources and is not
formally accepted by ISO yet, gate it behind a flag.
This commit is contained in:
Ben Boeckel
2024-08-07 14:15:50 -04:00
parent 23cbeb5035
commit e77655555c
13 changed files with 74 additions and 0 deletions

View File

@@ -3,6 +3,12 @@ CMAKE_EXPORT_BUILD_DATABASE
.. versionadded:: 3.31
.. note ::
This variable is meaningful only when experimental support for build
databases has been enabled by the
``CMAKE_EXPERIMENTAL_EXPORT_BUILD_DATABASE`` gate.
Enable/Disable output of module compile commands during the build.
If enabled, generates a ``build_database.json`` file containing the