Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
d198c5e0
Commit
d198c5e0
authored
Mar 26, 2002
by
Bill Hoffman
Browse files
ENH: add error checking for mmesa
parent
7fc14a9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmUseMangledMesaCommand.cxx
View file @
d198c5e0
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment