Diagnostics: CMD_INSTALL_ABSOLUTE_DIR follows CMake message style

This commit is contained in:
Robert Maynard authored and Brad King committed 2026-06-03 18:23:25 -04:00
1 parent 5636aa7740
commit f9fe9884ac
10 files changed
+59 -12

No files matched your search

+2 -2
View File
@@ -1916,8 +1916,8 @@ bool HandleDirectoryMode(std::vector<std::string> const& args,
cmSystemTools::FileIsFullPath(*destination)) {
helper.Makefile->IssueDiagnostic(
cmDiagnostics::CMD_INSTALL_ABSOLUTE_DESTINATION,
cmStrCat("INSTALL command given absolute DESTINATION path (",
*destination, ").\n"));
cmStrCat("INSTALL command given absolute DESTINATION path:\n ",
*destination));
}
// Create the directory install generator.
+1 -2
View File
@@ -238,8 +238,7 @@ void cmInstallGenerator::CheckAbsoluteDestination(std::string const& dest,
}
lg->IssueDiagnostic(
cmDiagnostics::CMD_INSTALL_ABSOLUTE_DESTINATION,
cmStrCat("INSTALL command given absolute DESTINATION path (", dest,
").\n"),
cmStrCat("INSTALL command given absolute DESTINATION path:\n ", dest),
this->Context);
}
@@ -1,2 +1,8 @@
CMake Error \(install-absolute-destination\) at DIRECTORY-AbsoluteDest-error\.cmake:[0-9]+ \(install\):
INSTALL command given absolute DESTINATION path \(/absolute/path\)\.
INSTALL command given absolute DESTINATION path:
/absolute/path
Call Stack \(most recent call first\):
CMakeLists.txt:[0-9]+ \(include\)
This error is for project developers\. Use -Wno-error=author or
-Wno-error=install-absolute-destination to suppress it\.
@@ -1,2 +1,8 @@
CMake Error \(install-absolute-destination\) at FILES-AbsoluteDest-error\.cmake:[0-9]+ \(install\):
INSTALL command given absolute DESTINATION path \(/absolute/path\)\.
INSTALL command given absolute DESTINATION path:
/absolute/path
Call Stack \(most recent call first\):
CMakeLists.txt:[0-9]+ \(include\)
This error is for project developers\. Use -Wno-error=author or
-Wno-error=install-absolute-destination to suppress it\.
@@ -1,2 +1,8 @@
CMake Warning \(install-absolute-destination\) at FILES-AbsoluteDest-warn\.cmake:[0-9]+ \(install\):
INSTALL command given absolute DESTINATION path \(/absolute/path\)\.
INSTALL command given absolute DESTINATION path:
/absolute/path
Call Stack \(most recent call first\):
CMakeLists.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or
-Wno-install-absolute-destination to suppress it\.
@@ -1,2 +1,8 @@
CMake Error \(install-absolute-destination\) at TARGETS-AbsoluteDest-archive-error\.cmake:[0-9]+ \(install\):
INSTALL command given absolute DESTINATION path \(/absolute/archive\)\.
INSTALL command given absolute DESTINATION path:
/absolute/archive
Call Stack \(most recent call first\):
CMakeLists.txt:[0-9]+ \(include\)
This error is for project developers\. Use -Wno-error=author or
-Wno-error=install-absolute-destination to suppress it\.
@@ -1,2 +1,8 @@
CMake Error \(install-absolute-destination\) at TARGETS-AbsoluteDest-error\.cmake:[0-9]+ \(install\):
INSTALL command given absolute DESTINATION path \(/absolute/path\)\.
INSTALL command given absolute DESTINATION path:
/absolute/path
Call Stack \(most recent call first\):
CMakeLists.txt:[0-9]+ \(include\)
This error is for project developers\. Use -Wno-error=author or
-Wno-error=install-absolute-destination to suppress it\.
@@ -1,2 +1,8 @@
CMake Error \(install-absolute-destination\) at TARGETS-AbsoluteDest-library-error\.cmake:[0-9]+ \(install\):
INSTALL command given absolute DESTINATION path \(/absolute/lib\)\.
INSTALL command given absolute DESTINATION path:
/absolute/lib
Call Stack \(most recent call first\):
CMakeLists.txt:[0-9]+ \(include\)
This error is for project developers\. Use -Wno-error=author or
-Wno-error=install-absolute-destination to suppress it\.
@@ -1,2 +1,8 @@
CMake Error \(install-absolute-destination\) at TARGETS-AbsoluteDest-runtime-error\.cmake:[0-9]+ \(install\):
INSTALL command given absolute DESTINATION path \(/absolute/bin\)\.
INSTALL command given absolute DESTINATION path:
/absolute/bin
Call Stack \(most recent call first\):
CMakeLists.txt:[0-9]+ \(include\)
This error is for project developers\. Use -Wno-error=author or
-Wno-error=install-absolute-destination to suppress it\.
@@ -1,2 +1,8 @@
CMake Warning \(install-absolute-destination\) at TARGETS-AbsoluteDest-warn\.cmake:[0-9]+ \(install\):
INSTALL command given absolute DESTINATION path \(/absolute/path\)\.
INSTALL command given absolute DESTINATION path:
/absolute/path
Call Stack \(most recent call first\):
CMakeLists.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author or
-Wno-install-absolute-destination to suppress it\.