mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 22:31:18 -05:00
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:
@@ -5942,6 +5942,10 @@ std::string cmGeneratorTarget::BuildDatabasePath(
|
||||
if (!this->GetPropertyAsBool("EXPORT_BUILD_DATABASE")) {
|
||||
return {};
|
||||
}
|
||||
if (!cmExperimental::HasSupportEnabled(
|
||||
*this->Makefile, cmExperimental::Feature::ExportBuildDatabase)) {
|
||||
return {};
|
||||
}
|
||||
// Check to see if the generator supports it.
|
||||
if (!this->GetGlobalGenerator()->SupportsBuildDatabase()) {
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user