summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-06-22 16:18:52 (GMT)
committerBrad King <brad.king@kitware.com>2001-06-22 16:18:52 (GMT)
commit10e0197054c469269259da047d60f85bcf292fe7 (patch)
tree31792a1840570042b9b42b80c6ed7e2ea46cba55 /Source
parentfda8bcc978f64506c33ab1007407941fa8cae2d0 (diff)
downloadCMake-10e0197054c469269259da047d60f85bcf292fe7.zip
CMake-10e0197054c469269259da047d60f85bcf292fe7.tar.gz
CMake-10e0197054c469269259da047d60f85bcf292fe7.tar.bz2
BUG: Fixed generation of cMakeRoot in one case.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmake.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 63647b5..a267377 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -126,7 +126,7 @@ void cmake::SetArgs(cmMakefile& builder, const std::vector<std::string>& 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<std::string>& args)
{
// Find our own executable.
@@ -183,7 +183,8 @@ void cmake::AddCMakePaths(const std::vector<std::string>& 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()))