mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-12 22:17:06 +00:00
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:
@@ -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 "
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
^CMake Warning \(deprecated\):
|
||||
^CMake Warning:
|
||||
Support for "Extra Generators" like
|
||||
|
||||
[^
|
||||
|
||||
Reference in New Issue
Block a user