summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-06-21 16:01:18 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-06-21 16:01:18 (GMT)
commit0ff3bdba204fec0671e601be5ff8b7af3ba821c8 (patch)
treef60e6e69d4d6a809340b5f7441ed29a4b4750495 /Source/cmake.cxx
parent8deccd3c2ea9d0eb5a63b2019a3dec984e7e0ae5 (diff)
downloadCMake-0ff3bdba204fec0671e601be5ff8b7af3ba821c8.zip
CMake-0ff3bdba204fec0671e601be5ff8b7af3ba821c8.tar.gz
CMake-0ff3bdba204fec0671e601be5ff8b7af3ba821c8.tar.bz2
better install support
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 7e2a14b..f015024 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -157,19 +157,19 @@ void cmake::AddCMakePaths(const std::vector<std::string>& args)
cMakeRoot = cMakeRoot.substr(0, slashPos);
}
// is there no Modules direcory there?
- std::string modules = cMakeRoot + "/Modules";
- if (!cmSystemTools::FileIsDirectory(modules.c_str()))
+ std::string modules = cMakeRoot + "/Modules/FindVTK.cmake";
+ if (!cmSystemTools::FileExists(modules.c_str()))
{
// try exe/../share/cmake
- modules = cMakeRoot + "/share/CMake/Modules";
- if (!cmSystemTools::FileIsDirectory(modules.c_str()))
+ modules = cMakeRoot + "/share/CMake/Modules/FindVTK.cmake";
+ if (!cmSystemTools::FileExists(modules.c_str()))
{
#ifdef CMAKE_ROOT_DIR
// try compiled in value on UNIX
cMakeRoot = CMAKE_ROOT_DIR;
- modules = cMakeRoot + "/Modules";
+ modules = cMakeRoot + "/Modules/FindVTK.cmake";
#endif
- if (!cmSystemTools::FileIsDirectory(modules.c_str()))
+ if (!cmSystemTools::FileExists(modules.c_str()))
{
// couldn't find modules
cmSystemTools::Error("Could not find CMAKE_ROOT !!!\n",