diff options
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index af1c0a8..d549203 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -2975,7 +2975,13 @@ int cmake::GetSystemInformation(std::vector<std::string>& args) resultArg += resultFile; 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()); |