|
@@ -34,6 +34,7 @@
|
|
#include "cmCustomCommandLines.h"
|
|
#include "cmCustomCommandLines.h"
|
|
#include "cmCustomCommandTypes.h"
|
|
#include "cmCustomCommandTypes.h"
|
|
#include "cmDuration.h"
|
|
#include "cmDuration.h"
|
|
|
|
+#include "cmExperimental.h"
|
|
#include "cmExportBuildFileGenerator.h"
|
|
#include "cmExportBuildFileGenerator.h"
|
|
#include "cmExternalMakefileProjectGenerator.h"
|
|
#include "cmExternalMakefileProjectGenerator.h"
|
|
#include "cmGeneratedFileStream.h"
|
|
#include "cmGeneratedFileStream.h"
|
|
@@ -3303,6 +3304,10 @@ bool cmGlobalGenerator::AddBuildDatabaseTargets()
|
|
if (!mf->IsOn("CMAKE_EXPORT_BUILD_DATABASE")) {
|
|
if (!mf->IsOn("CMAKE_EXPORT_BUILD_DATABASE")) {
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
+ if (!cmExperimental::HasSupportEnabled(
|
|
|
|
+ *mf.get(), cmExperimental::Feature::ExportBuildDatabase)) {
|
|
|
|
+ return {};
|
|
|
|
+ }
|
|
|
|
|
|
static const auto reservedTargets = { "cmake_build_database" };
|
|
static const auto reservedTargets = { "cmake_build_database" };
|
|
for (auto const& target : reservedTargets) {
|
|
for (auto const& target : reservedTargets) {
|