Diagnostics: Show author message for all descendants

Tweak `cmMessenger` to also show the "warning is for project developers"
notice for all diagnostics that are descendants of the `CMD_AUTHOR`
category. When doing so, also show both command-line options which can
suppress the message.
This commit is contained in:
Matthew Woehlke
2026-05-15 09:57:23 -04:00
committed by Brad King
parent 05c103d92a
commit 92e0ca9046
174 changed files with 510 additions and 132 deletions
+30 -8
View File
@@ -64,6 +64,17 @@ cm::StdIo::TermAttr getMessageColor(MessageType t)
}
}
bool isAuthorDiagnostic(cmDiagnosticCategory category)
{
while (category != cmDiagnostics::CMD_NONE) {
if (category == cmDiagnostics::CMD_AUTHOR) {
return true;
}
category = cmDiagnostics::CategoryInfo[category].Parent;
}
return false;
}
void printMessageText(std::ostream& msg, std::string const& text)
{
msg << ":\n";
@@ -75,19 +86,30 @@ void printMessageText(std::ostream& msg, std::string const& text)
void displayMessage(MessageType type, cmDiagnosticCategory category,
std::ostringstream& msg)
{
if (category == cmDiagnostics::CMD_AUTHOR) {
if (isAuthorDiagnostic(category)) {
// Add a note about warning suppression.
std::ostringstream text;
if (type == MessageType::WARNING) {
msg << "This warning is for project developers. "
"Use -Wno-author to suppress it.";
text << "This warning is for project developers. "
"Use -Wno-author";
if (category != cmDiagnostics::CMD_AUTHOR) {
text << " or -Wno-" << getDiagnosticCategoryStr(category);
}
} else if (type == MessageType::FATAL_ERROR) {
msg << "This error is for project developers. "
"Use -Wno-error=author to suppress it.";
text << "This error is for project developers. "
"Use -Wno-error=author";
if (category != cmDiagnostics::CMD_AUTHOR) {
text << " or -Wno-error=" << getDiagnosticCategoryStr(category);
}
}
}
text << " to suppress it.";
// Add a terminating blank line.
msg << '\n';
cmDocumentationFormatter formatter;
formatter.PrintFormatted(msg, text.str());
} else {
// Add a terminating blank line.
msg << '\n';
}
#if !defined(CMAKE_BOOTSTRAP)
// Add a C++ stack trace to internal errors.
@@ -5,4 +5,6 @@
The cmake-policies\(7\) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.$
behavior and not rely on setting a policy to OLD\.
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -6,4 +6,6 @@
The cmake-policies\(7\) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.$
behavior and not rely on setting a policy to OLD\.
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -6,6 +6,8 @@
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
CMake Error at CMP0115\.cmake:[0-9]+ \(add_executable\):
Cannot find source file:
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
CMake Warning \(author\) at CMP0116-Mixed\.cmake:1 \(add_custom_command\):
Policy CMP0116 is not set: Ninja generators transform DEPFILEs from
@@ -5,4 +5,6 @@
The cmake-policies\(7\) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.$
behavior and not rely on setting a policy to OLD\.
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -5,4 +5,6 @@
The cmake-policies\(7\) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.$
behavior and not rely on setting a policy to OLD\.
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
prop: `0`
CMake Error at CMP0118-Common-Test1\.cmake:[0-9]+ \(target_sources\):
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
Generated_source0\.txt: # 1a # GENERATED = `1`
Generated_source0\.txt: # 1b # GENERATED = `1`
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
Generated_source0\.txt: # 1a # GENERATED = `1`
Generated_source0\.txt: # 1b # GENERATED = `1`
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
CMake Error at subdir-Common-Test12/CMakeLists\.txt:[0-9]+ \(add_custom_command\):
TARGET 'custom[4-6]' was not created in this directory\.
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
CMake Error at subdir-Common-Test13/CMakeLists\.txt:[0-9]+ \(add_custom_command\):
TARGET 'custom[4-6]' was not created in this directory\.
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
Generated_source0\.txt: # 1a # GENERATED = `1`
Generated_source0\.txt: # 1b # GENERATED = `1`
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
Generated_source0\.txt: # 1a # GENERATED = `1`
Generated_source0\.txt: # 1b # GENERATED = `1`
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
CMake Error at subdir-Common-Test16/CMakeLists\.txt:[0-9]+ \(add_custom_command\):
TARGET 'custom4' was not created in this directory\.
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
prop: `NOTFOUND`
CMake Error at CMP0118-Common-Test1b\.cmake:[0-9]+ \(target_sources\):
@@ -8,5 +8,7 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
prop: `1`$
@@ -8,5 +8,7 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
prop: `1`$
@@ -8,5 +8,7 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
prop: `1`$
@@ -8,5 +8,7 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
prop: `1`$
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
Generated_with_full_path1\.txt: # 1a # GENERATED = `1`
Generated_with_full_path1\.txt: # 1b # GENERATED = `1`
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
Generated_with_full_path1\.txt: # 1a # GENERATED = `1`
Generated_with_full_path1\.txt: # 1b # GENERATED = `1`
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
Generated_with_full_path1\.txt: # 1a # GENERATED = `0`
Generated_with_full_path1\.txt: # 1b # GENERATED = `0`
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
Generated_with_full_path1\.txt: # 1a # GENERATED = `0`
Generated_with_full_path1\.txt: # 1b # GENERATED = `0`
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
Generated_with_full_path1\.txt: # 1a # GENERATED = `1`
Generated_with_full_path1\.txt: # 1b # GENERATED = `1`
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
Generated_source1\.txt: # 1a # GENERATED = `1`
Generated_source1\.txt: # 1b # GENERATED = `1`
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
Generated_source1\.txt: # 1a # GENERATED = `1`
Generated_source1\.txt: # 1b # GENERATED = `1`
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
Generated_source1\.txt: # 1a # GENERATED = `0`
Generated_source1\.txt: # 1b # GENERATED = `0`
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
Generated_source1\.txt: # 1a # GENERATED = `0`
Generated_source1\.txt: # 1b # GENERATED = `0`
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
Generated_source1\.txt: # 1a # GENERATED = `0`
Generated_source1\.txt: # 1b # GENERATED = `0`
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
Generated_source1\.txt: # 1a # GENERATED = `0`
Generated_source1\.txt: # 1b # GENERATED = `0`
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
CMake Error at GenInSubdir/CMakeLists\.txt:[0-9]+ \(target_sources\):
Cannot find source file:
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
+3 -1
View File
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
+3 -1
View File
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
CMake Error at CMP0139-OLD\.cmake:[0-9]+ \(if\):
if given arguments:
@@ -6,4 +6,6 @@
The cmake-policies\(7\) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.$
behavior and not rely on setting a policy to OLD\.
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -6,4 +6,6 @@
The cmake-policies\(7\) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.$
behavior and not rely on setting a policy to OLD\.
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,8 +7,11 @@ CMake Warning \(deprecated\) at [^
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
CMake Error \(deprecated\) at [^
]+/Tests/RunCMake/CMP0218/CMP0218-OLD\.cmake:[0-9]+ \(message\):
Test
This error is for project developers\. Use -Wno-error=author or
-Wno-error=deprecated to suppress it\.
@@ -6,4 +6,6 @@
The cmake-policies\(7\) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.$
behavior and not rely on setting a policy to OLD\.
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -4,4 +4,6 @@
Call Stack \(most recent call first\):
[^
]*/Tests/RunCMake/CMakePresets/ErrorDeprecated\.cmake:[0-9]+ \(include\)
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This error is for project developers\. Use -Wno-error=author or
-Wno-error=deprecated to suppress it\.$
@@ -6,11 +6,13 @@ Call Stack \(most recent call first\):
]*/Tests/RunCMake/CMakePresets/ErrorDev\.cmake:[0-9]+ \(include\)
CMakeLists\.txt:[0-9]+ \(include\)
This error is for project developers\. Use -Wno-error=author to suppress it\.
+
CMake Error \(deprecated\) at [^
]*/Tests/RunCMake/CMakePresets/WarningsBase\.cmake:[0-9]+ \(message\):
Deprecation warning
Call Stack \(most recent call first\):
[^
]*/Tests/RunCMake/CMakePresets/ErrorDev\.cmake:[0-9]+ \(include\)
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This error is for project developers\. Use -Wno-error=author or
-Wno-error=deprecated to suppress it\.$
@@ -6,7 +6,7 @@ Call Stack \(most recent call first\):
]*/Tests/RunCMake/CMakePresets/NoWarningFlags\.cmake:[0-9]+ \(include\)
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.
+
CMake Warning \(deprecated\) at [^
]*/Tests/RunCMake/CMakePresets/WarningsBase\.cmake:[0-9]+ \(message\):
Deprecation warning
@@ -14,8 +14,9 @@ Call Stack \(most recent call first\):
[^
]*/Tests/RunCMake/CMakePresets/NoWarningFlags\.cmake:[0-9]+ \(include\)
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
CMake Warning \(unused-cli\):
Manually-specified variables were not used by the project:
@@ -14,7 +14,7 @@ Call Stack \(most recent call first\):
]*/Tests/RunCMake/CMakePresets/WarningFlags\.cmake:[0-9]+ \(include\)
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.
+
CMake Warning \(deprecated\) at [^
]*/Tests/RunCMake/CMakePresets/WarningsBase\.cmake:[0-9]+ \(message\):
Deprecation warning
@@ -22,8 +22,9 @@ Call Stack \(most recent call first\):
[^
]*/Tests/RunCMake/CMakePresets/WarningFlags\.cmake:[0-9]+ \(include\)
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
CMake Warning \(uninitialized\) at [^
]*/Tests/RunCMake/CMakePresets/WarningsBase\.cmake:[0-9]+ \(set\):
uninitialized variable 'UNINITIALIZED_VARIABLE'
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:5 \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
CMake Warning \(deprecated\) at [^
]*/Modules/Dart\.cmake:[0-9]+ \(cmake_policy\):
@@ -20,4 +22,6 @@ CMake Warning \(deprecated\) at [^
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMP0145-Dart-OLD\.cmake:3 \(include\)
CMakeLists\.txt:5 \(include\)$
CMakeLists\.txt:5 \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -28,4 +28,6 @@ CMake Warning \(deprecated\) at [^
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMP0145-Dart-WARN\.cmake:[0-9]+ \(include\)
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
CMake Error at .*/Modules/CheckIPOSupported\.cmake:[0-9]+ \(message\):
Policy CMP0069 set to OLD
@@ -58,4 +58,6 @@ CMake Warning \(deprecated\) at CMP0075\.cmake:[0-9]+ \(cmake_policy\):
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
CMake Warning \(author\) in CMakeLists\.txt:
Policy CMP0128 is not set: Selection of language standard and extension
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
CMake Warning \(author\) in CMakeLists\.txt:
Policy CMP0128 is not set: Selection of language standard and extension
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\))?$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.)?$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\))?$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.)?$
@@ -8,6 +8,8 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
CMake Warning \(author\) at [^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(message\):
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -5,6 +5,8 @@
Update the VERSION argument <min> value\. Or, use the <min>\.\.\.<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier\.
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
CMake Warning \(deprecated\) at CMP0070-OLD\.cmake:[0-9]+ \(cmake_policy\):
The OLD behavior for policy CMP0070 will be removed from a future version
@@ -15,4 +17,6 @@ CMake Warning \(deprecated\) at CMP0070-OLD\.cmake:[0-9]+ \(cmake_policy\):
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -5,6 +5,8 @@
Update the VERSION argument <min> value\. Or, use the <min>\.\.\.<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier\.
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
(CMake Warning \(author\) in CMakeLists\.txt:
Policy CMP0070 is not set: Define file\(GENERATE\) behavior for relative
@@ -5,6 +5,8 @@
Update the VERSION argument <min> value\. Or, use the <min>\.\.\.<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier\.
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
CMake Warning \(deprecated\) at SourceProperty-CMP0070-OLD\.cmake:[0-9]+ \(cmake_policy\):
The OLD behavior for policy CMP0070 will be removed from a future version
@@ -16,6 +18,8 @@ CMake Warning \(deprecated\) at SourceProperty-CMP0070-OLD\.cmake:[0-9]+ \(cmake
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
CMake Error at SourceProperty-CMP0070-OLD\.cmake:[0-9]+ \(target_sources\):
Cannot find source file:
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:3 \(include\)$
CMakeLists\.txt:3 \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -5,4 +5,6 @@
The cmake-policies\(7\) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.$
behavior and not rely on setting a policy to OLD\.
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
+3 -1
View File
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
+2
View File
@@ -242,6 +242,8 @@ function(run_cmake test)
Update the VERSION argument <min> value\. Or, use the <min>\.\.\.<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier\.
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
]] "" actual_stderr "${actual_stderr}")
endif()
@@ -8,5 +8,7 @@
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
try_compile CMP0126='OLD' VAR='2'
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -1,3 +1,5 @@
^CMake Warning \(deprecated\) in CMakeLists\.txt:
The C# target "foo" is of type STATIC_LIBRARY\. This is discouraged \(and
may be disabled in future\)\. Make it a SHARED library instead\.$
may be disabled in future\)\. Make it a SHARED library instead\.
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -1,8 +1,11 @@
^CMake Warning \(deprecated\) in CMakeLists\.txt:
The C# target "foo2" is of type STATIC_LIBRARY\. This is discouraged \(and
may be disabled in future\)\. Make it a SHARED library instead\.
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.
+
CMake Warning \(deprecated\) in CMakeLists\.txt:
The C# target "foo" is of type STATIC_LIBRARY\. This is discouraged \(and
may be disabled in future\)\. Make it a SHARED library instead\.$
may be disabled in future\)\. Make it a SHARED library instead\.
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -5,4 +5,6 @@
The cmake-policies\(7\) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.$
behavior and not rely on setting a policy to OLD\.
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$
@@ -7,4 +7,6 @@
specific short-term circumstances\. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or -Wno-deprecated
to suppress it\.$

Some files were not shown because too many files have changed in this diff Show More