diff --git a/Source/cmInstallCommand.cxx b/Source/cmInstallCommand.cxx index 557016ac53..046e73077f 100644 --- a/Source/cmInstallCommand.cxx +++ b/Source/cmInstallCommand.cxx @@ -1916,8 +1916,8 @@ bool HandleDirectoryMode(std::vector 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. diff --git a/Source/cmInstallGenerator.cxx b/Source/cmInstallGenerator.cxx index ef84ae2ee2..c77be552d7 100644 --- a/Source/cmInstallGenerator.cxx +++ b/Source/cmInstallGenerator.cxx @@ -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); } diff --git a/Tests/RunCMake/install/DIRECTORY-AbsoluteDest-error-stderr.txt b/Tests/RunCMake/install/DIRECTORY-AbsoluteDest-error-stderr.txt index d742940529..f853cfe65d 100644 --- a/Tests/RunCMake/install/DIRECTORY-AbsoluteDest-error-stderr.txt +++ b/Tests/RunCMake/install/DIRECTORY-AbsoluteDest-error-stderr.txt @@ -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\. diff --git a/Tests/RunCMake/install/FILES-AbsoluteDest-error-stderr.txt b/Tests/RunCMake/install/FILES-AbsoluteDest-error-stderr.txt index 689d48b42e..39ef8581bd 100644 --- a/Tests/RunCMake/install/FILES-AbsoluteDest-error-stderr.txt +++ b/Tests/RunCMake/install/FILES-AbsoluteDest-error-stderr.txt @@ -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\. diff --git a/Tests/RunCMake/install/FILES-AbsoluteDest-warn-stderr.txt b/Tests/RunCMake/install/FILES-AbsoluteDest-warn-stderr.txt index f320131e0c..268a4f3ae8 100644 --- a/Tests/RunCMake/install/FILES-AbsoluteDest-warn-stderr.txt +++ b/Tests/RunCMake/install/FILES-AbsoluteDest-warn-stderr.txt @@ -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\. diff --git a/Tests/RunCMake/install/TARGETS-AbsoluteDest-archive-error-stderr.txt b/Tests/RunCMake/install/TARGETS-AbsoluteDest-archive-error-stderr.txt index e091ab01d8..e23bde871c 100644 --- a/Tests/RunCMake/install/TARGETS-AbsoluteDest-archive-error-stderr.txt +++ b/Tests/RunCMake/install/TARGETS-AbsoluteDest-archive-error-stderr.txt @@ -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\. diff --git a/Tests/RunCMake/install/TARGETS-AbsoluteDest-error-stderr.txt b/Tests/RunCMake/install/TARGETS-AbsoluteDest-error-stderr.txt index 22c0d98269..44123695ad 100644 --- a/Tests/RunCMake/install/TARGETS-AbsoluteDest-error-stderr.txt +++ b/Tests/RunCMake/install/TARGETS-AbsoluteDest-error-stderr.txt @@ -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\. diff --git a/Tests/RunCMake/install/TARGETS-AbsoluteDest-library-error-stderr.txt b/Tests/RunCMake/install/TARGETS-AbsoluteDest-library-error-stderr.txt index 368434d81c..66b9a39167 100644 --- a/Tests/RunCMake/install/TARGETS-AbsoluteDest-library-error-stderr.txt +++ b/Tests/RunCMake/install/TARGETS-AbsoluteDest-library-error-stderr.txt @@ -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\. diff --git a/Tests/RunCMake/install/TARGETS-AbsoluteDest-runtime-error-stderr.txt b/Tests/RunCMake/install/TARGETS-AbsoluteDest-runtime-error-stderr.txt index 279fb88e28..b3d82e417f 100644 --- a/Tests/RunCMake/install/TARGETS-AbsoluteDest-runtime-error-stderr.txt +++ b/Tests/RunCMake/install/TARGETS-AbsoluteDest-runtime-error-stderr.txt @@ -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\. diff --git a/Tests/RunCMake/install/TARGETS-AbsoluteDest-warn-stderr.txt b/Tests/RunCMake/install/TARGETS-AbsoluteDest-warn-stderr.txt index 730a8edf95..78f0b43c80 100644 --- a/Tests/RunCMake/install/TARGETS-AbsoluteDest-warn-stderr.txt +++ b/Tests/RunCMake/install/TARGETS-AbsoluteDest-warn-stderr.txt @@ -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\.