Commit d198c5e0 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: add error checking for mmesa

parent 7fc14a9c
......@@ -29,6 +29,17 @@ bool cmUseMangledMesaCommand::InitialPass(std::vector<std::string> const& args)
return false;
}
const char* inputDir = args[0].c_str();
std::string glh = inputDir;
glh += "/";
glh += "gl.h";
if(!cmSystemTools::FileExists(glh.c_str()))
{
std::string e = "Bad path to Mesa, could not find: ";
e += glh;
e += " ";
this->SetError(e.c_str());
return false;
}
const char* destDir = args[1].c_str();
std::vector<std::string> files;
cmSystemTools::Glob(inputDir, "\\.h$", files);
......
Supports Markdown
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