Extra Generators: Always warn

Issue a warning message rather than a deprecation diagnostic when 'extra
generators' are used. This prevents `-Wno-author` suppressing the
message, which really isn't a diagnostic for authors as it relates to
how CMake was invoked.
This commit is contained in:
Matthew Woehlke
2026-05-12 13:01:21 -04:00
parent 05c103d92a
commit 727e32ff48
2 changed files with 3 additions and 3 deletions

View File

@@ -1338,8 +1338,8 @@ void cmGlobalGenerator::Configure()
this->CMakeInstance->GetHomeOutputDirectory());
if (this->ExtraGenerator && !this->CMakeInstance->GetIsInTryCompile()) {
this->CMakeInstance->IssueDiagnostic(
cmDiagnostics::CMD_DEPRECATED,
this->CMakeInstance->IssueMessage(
MessageType::WARNING,
cmStrCat("Support for \"Extra Generators\" like\n ",
this->ExtraGenerator->GetName(),
"\nis deprecated and will be removed from a future version "

View File

@@ -1,4 +1,4 @@
^CMake Warning \(deprecated\):
^CMake Warning:
Support for "Extra Generators" like
[^