BUG: fix for unused variable
This commit is contained in:
parent
0ce8c158cc
commit
42c41d77fa
|
@ -2976,6 +2976,12 @@ int cmake::GetSystemInformation(std::vector<std::string>& args)
|
|||
args2.push_back(resultArg);
|
||||
int res = cm.Run(args2, false);
|
||||
|
||||
if (res != 0)
|
||||
{
|
||||
std::cerr << "Error: --system-information failed on internal CMake!\n";
|
||||
return res;
|
||||
}
|
||||
|
||||
// change back to the original directory
|
||||
cmSystemTools::ChangeDirectory(cwd.c_str());
|
||||
|
||||
|
|
Loading…
Reference in New Issue