mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-18 05:01:50 -06:00
add_custom_command: Format files in error message in a single line
This commit is contained in:
@@ -320,8 +320,8 @@ bool cmAddCustomCommandCommand(std::vector<std::string> const& args,
|
||||
|
||||
// No command for this output exists.
|
||||
status.SetError(
|
||||
cmStrCat("given APPEND option with output\n\"", output[0],
|
||||
"\"\nwhich is not already a custom command output."));
|
||||
cmStrCat("given APPEND option with output\n ", output[0],
|
||||
"\nwhich is not already a custom command output."));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -17,8 +17,8 @@ bool cmCheckCustomOutputs(const std::vector<std::string>& outputs,
|
||||
// directory during an out of source build.
|
||||
if (!mf.CanIWriteThisFile(o)) {
|
||||
status.SetError(
|
||||
cmStrCat("attempted to have a file\n\"", o,
|
||||
"\"\nin a source directory as an output of custom command."));
|
||||
cmStrCat("attempted to have a file\n ", o,
|
||||
"\nin a source directory as an output of custom command."));
|
||||
cmSystemTools::SetFatalErrorOccured();
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user