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
6c0fb31d
Commit
6c0fb31d
authored
May 06, 2004
by
Ken Martin
Browse files
horrible hack
parent
f299f4ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmIfCommand.cxx
View file @
6c0fb31d
...
...
@@ -159,6 +159,22 @@ bool cmIfCommand::IsTrue(const std::vector<std::string> &args,
isValid
=
true
;
return
false
;
}
// this is a super ugly hack. Basically old versiosn of VTK and ITK have a
// bad test to check for more recent versions of CMake in the
// CMakeLists.txt file for libtiff. So when we reved CMake up to 2.0 the
// test started failing because the minor version went to zero this causes
// the test to pass
if
(
args
.
size
()
==
3
&&
(
makefile
->
GetDefinition
(
"VTKTIFF_SOURCE_DIR"
)
||
makefile
->
GetDefinition
(
"ITKTIFF_SOURCE_DIR"
))
&&
args
[
0
]
==
"CMAKE_MINOR_VERSION"
&&
args
[
1
]
==
"MATCHES"
)
{
isValid
=
true
;
return
true
;
}
// store the reduced args in this vector
std
::
deque
<
std
::
string
>
newArgs
;
...
...
Write
Preview
Markdown
is supported
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