diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-03-26 12:55:14 -0500 |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-03-26 12:55:14 -0500 |
commit | d198c5e0729566ec34a2d2d4c5c1010c21adbf55 (patch) | |
tree | dceeabfe926ce8bbd7952919ca205941054a30b5 /Source/cmUseMangledMesaCommand.cxx | |
parent | 7fc14a9cb49712f3199f3bb9bd020d6ae5860501 (diff) | |
download | cmake-d198c5e0729566ec34a2d2d4c5c1010c21adbf55.tar.gz |
ENH: add error checking for mmesa
Diffstat (limited to 'Source/cmUseMangledMesaCommand.cxx')
-rw-r--r-- | Source/cmUseMangledMesaCommand.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmUseMangledMesaCommand.cxx b/Source/cmUseMangledMesaCommand.cxx index 3c3f3f61d2..a762fa14e0 100644 --- a/Source/cmUseMangledMesaCommand.cxx +++ b/Source/cmUseMangledMesaCommand.cxx @@ -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); |