mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 20:29:49 -05:00
Merge topic 'file-READ_ELF-capture-error'
41bebbe50a file: Restore error capture in undocumented READ_ELF mode
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !6853
This commit is contained in:
@@ -1211,9 +1211,14 @@ bool HandleReadElfCommand(std::vector<std::string> const& args,
|
||||
|
||||
cmELF elf(fileNameArg.c_str());
|
||||
if (!elf) {
|
||||
status.SetError(cmStrCat("READ_ELF given FILE \"", fileNameArg,
|
||||
"\" that is not a valid ELF file."));
|
||||
return false;
|
||||
if (arguments.Error.empty()) {
|
||||
status.SetError(cmStrCat("READ_ELF given FILE:\n ", fileNameArg,
|
||||
"\nthat is not a valid ELF file."));
|
||||
return false;
|
||||
}
|
||||
status.GetMakefile().AddDefinition(arguments.Error,
|
||||
"not a valid ELF file");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!arguments.RPath.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user