summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-09-24 22:57:53 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2024-08-27 16:37:36 (GMT)
commitdcf9a66ffe0b7f871b65df8477707facb55a6366 (patch)
tree68896e20b42e0a2e84a3aeb58eead4fa5a2d99ff /Source/cmTarget.cxx
parentbea4fb7cd6de1ae7c7ce399ee8b38cc435cf1395 (diff)
downloadCMake-dcf9a66ffe0b7f871b65df8477707facb55a6366.zip
CMake-dcf9a66ffe0b7f871b65df8477707facb55a6366.tar.gz
CMake-dcf9a66ffe0b7f871b65df8477707facb55a6366.tar.bz2
cxxmodules: plumb control data for exporting build databases
This includes the target property, its initializing variable, its initializing environment variable, and updating related docs to mention the new bits.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 32fd16f..da0091b 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -598,6 +598,7 @@ TargetProperty const StaticTargetProperties[] = {
// Metadata
{ "CROSSCOMPILING_EMULATOR"_s, IC::ExecutableTarget },
+ { "EXPORT_BUILD_DATABASE"_s, IC::CanCompileSources },
{ "EXPORT_COMPILE_COMMANDS"_s, IC::CanCompileSources },
{ "FOLDER"_s },
{ "TEST_LAUNCHER"_s, IC::ExecutableTarget },
@@ -1895,6 +1896,10 @@ void cmTarget::CopyImportedCxxModulesProperties(cmTarget const* tgt)
// Metadata
"EchoString",
"EXPORT_COMPILE_COMMANDS",
+ // Do *not* copy this property; it should be re-initialized at synthesis
+ // time from the `CMAKE_EXPORT_BUILD_DATABASE` variable as `IMPORTED`
+ // targets ignore the property initialization.
+ // "EXPORT_BUILD_DATABASE",
"FOLDER",
"LABELS",
"PROJECT_LABEL",