Updates will be applied on October 27th between 12pm - 12:45pm EDT (UTC-0400). Gitlab may be slow during the maintenance window.

Commit fd3a3946 authored by Daniel Eiband's avatar Daniel Eiband
Browse files

add_custom_command: Format files in error message in a single line

parent a1cc6b44
Pipeline #146976 passed with stage
...@@ -320,8 +320,8 @@ bool cmAddCustomCommandCommand(std::vector<std::string> const& args, ...@@ -320,8 +320,8 @@ bool cmAddCustomCommandCommand(std::vector<std::string> const& args,
// No command for this output exists. // No command for this output exists.
status.SetError( status.SetError(
cmStrCat("given APPEND option with output\n\"", output[0], cmStrCat("given APPEND option with output\n ", output[0],
"\"\nwhich is not already a custom command output.")); "\nwhich is not already a custom command output."));
return false; return false;
} }
......
...@@ -17,8 +17,8 @@ bool cmCheckCustomOutputs(const std::vector<std::string>& outputs, ...@@ -17,8 +17,8 @@ bool cmCheckCustomOutputs(const std::vector<std::string>& outputs,
// directory during an out of source build. // directory during an out of source build.
if (!mf.CanIWriteThisFile(o)) { if (!mf.CanIWriteThisFile(o)) {
status.SetError( status.SetError(
cmStrCat("attempted to have a file\n\"", o, cmStrCat("attempted to have a file\n ", o,
"\"\nin a source directory as an output of custom command.")); "\nin a source directory as an output of custom command."));
cmSystemTools::SetFatalErrorOccured(); cmSystemTools::SetFatalErrorOccured();
return false; return false;
} }
......
CMake Error at AppendNotOutput.cmake:1 \(add_custom_command\): CMake Error at AppendNotOutput.cmake:1 \(add_custom_command\):
add_custom_command given APPEND option with output add_custom_command given APPEND option with output
.*RunCMake/add_custom_command/AppendNotOutput-build/out.* .*RunCMake/add_custom_command/AppendNotOutput-build/out
which is not already a custom command output. which is not already a custom command output.
Call Stack \(most recent call first\): Call Stack \(most recent call first\):
......
...@@ -29,7 +29,7 @@ Call Stack \(most recent call first\): ...@@ -29,7 +29,7 @@ Call Stack \(most recent call first\):
CMake Error at BadByproduct.cmake:6 \(add_custom_command\): CMake Error at BadByproduct.cmake:6 \(add_custom_command\):
add_custom_command attempted to have a file add_custom_command attempted to have a file
.*/f".* .*RunCMake/add_custom_command/f
in a source directory as an output of custom command. in a source directory as an output of custom command.
Call Stack \(most recent call first\): Call Stack \(most recent call first\):
......
...@@ -29,7 +29,7 @@ Call Stack \(most recent call first\): ...@@ -29,7 +29,7 @@ Call Stack \(most recent call first\):
CMake Error at BadOutput.cmake:6 \(add_custom_command\): CMake Error at BadOutput.cmake:6 \(add_custom_command\):
add_custom_command attempted to have a file add_custom_command attempted to have a file
.*/e".* .*RunCMake/add_custom_command/e
in a source directory as an output of custom command. in a source directory as an output of custom command.
Call Stack \(most recent call first\): Call Stack \(most recent call first\):
......
...@@ -29,7 +29,7 @@ Call Stack \(most recent call first\): ...@@ -29,7 +29,7 @@ Call Stack \(most recent call first\):
CMake Error at BadByproduct.cmake:6 \(add_custom_target\): CMake Error at BadByproduct.cmake:6 \(add_custom_target\):
add_custom_target attempted to have a file add_custom_target attempted to have a file
.*/j".* .*RunCMake/add_custom_target/j
in a source directory as an output of custom command. in a source directory as an output of custom command.
Call Stack \(most recent call first\): Call Stack \(most recent call first\):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment