diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 63647b54f3..a267377af7 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()))