summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-06-20 17:56:38 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-06-20 17:56:38 (GMT)
commitadbae91cb5a5cb4cd33df273dd977791406ec339 (patch)
tree6bf114389890b3be2ba49e3c189bb67d5b5f8d6e /Source/cmake.cxx
parent7715b382fe71932aa36333659b7a2311008d0f06 (diff)
downloadCMake-adbae91cb5a5cb4cd33df273dd977791406ec339.zip
CMake-adbae91cb5a5cb4cd33df273dd977791406ec339.tar.gz
CMake-adbae91cb5a5cb4cd33df273dd977791406ec339.tar.bz2
ENH: fix cmake so it can boot strap itself better
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index f54e556..7e2a14b 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -164,7 +164,7 @@ void cmake::AddCMakePaths(const std::vector<std::string>& args)
modules = cMakeRoot + "/share/CMake/Modules";
if (!cmSystemTools::FileIsDirectory(modules.c_str()))
{
-#if !defined(_WIN32) || defined(__CYGWIN__)
+#ifdef CMAKE_ROOT_DIR
// try compiled in value on UNIX
cMakeRoot = CMAKE_ROOT_DIR;
modules = cMakeRoot + "/Modules";