mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 12:09:48 +00:00
file: Fix formatting of error in SIZE sub-command
This commit is contained in:
parent
98a39be6cf
commit
31840e363f
@ -3630,7 +3630,7 @@ bool cmFileCommand::HandleSizeCommand(std::vector<std::string> const& args)
|
||||
|
||||
if (!cmSystemTools::FileExists(filename, true)) {
|
||||
std::ostringstream e;
|
||||
e << "SIZE requested of path that is not readable " << filename;
|
||||
e << "SIZE requested of path that is not readable:\n " << filename;
|
||||
this->SetError(e.str());
|
||||
return false;
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
^CMake Error at SIZE-error-does-not-exist.cmake:[0-9]+ \(file\):
|
||||
file SIZE requested of path that is not readable
|
||||
/a/file/that/does-not-exist
|
||||
file SIZE requested of path that is not readable:
|
||||
|
||||
.*/Tests/RunCMake/file/SIZE-error-does-not-exist-build/does-not-exist
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:[0-9]+ \(include\)
|
||||
|
@ -1,3 +1,3 @@
|
||||
set(file "/a/file/that/does-not-exist")
|
||||
set(file "${CMAKE_CURRENT_BINARY_DIR}/does-not-exist")
|
||||
|
||||
file(SIZE "${file}" CALCULATED_SIZE)
|
||||
|
Loading…
Reference in New Issue
Block a user