From 10e0197054c469269259da047d60f85bcf292fe7 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 22 Jun 2001 12:18:52 -0400 Subject: [PATCH] BUG: Fixed generation of cMakeRoot in one case. --- Source/cmake.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 63647b54f..a267377af 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -126,7 +126,7 @@ void cmake::SetArgs(cmMakefile& builder, const std::vector& args) } } -// at the end of this CMAKE_ROOT and CMAAKE_COMMAND should be added to the cache +// at the end of this CMAKE_ROOT and CMAKE_COMMAND should be added to the cache void cmake::AddCMakePaths(const std::vector& args) { // Find our own executable. @@ -183,7 +183,8 @@ void cmake::AddCMakePaths(const std::vector& args) if (!cmSystemTools::FileExists(modules.c_str())) { // try exe/../share/cmake - modules = cMakeRoot + "/share/CMake/Modules/FindVTK.cmake"; + cMakeRoot += "/share/CMake"; + modules = cMakeRoot + "/Modules/FindVTK.cmake"; } #ifdef CMAKE_ROOT_DIR if (!cmSystemTools::FileExists(modules.c_str()))