diff options
author | Ken Martin <ken.martin@kitware.com> | 2004-05-06 13:47:25 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2004-05-06 13:47:25 (GMT) |
commit | 6c0fb31d5094d9628f3acaac6ef5c76cdc30d660 (patch) | |
tree | fe3cdc9644e003a6026ce90341d7b28d47c284b3 /Source/cmIfCommand.cxx | |
parent | f299f4ae9cd207d135892630dddfff103a3cf458 (diff) | |
download | CMake-6c0fb31d5094d9628f3acaac6ef5c76cdc30d660.zip CMake-6c0fb31d5094d9628f3acaac6ef5c76cdc30d660.tar.gz CMake-6c0fb31d5094d9628f3acaac6ef5c76cdc30d660.tar.bz2 |
horrible hack
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r-- | Source/cmIfCommand.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx index 5339cc0..466fc2a 100644 --- a/Source/cmIfCommand.cxx +++ b/Source/cmIfCommand.cxx @@ -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; |