summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCacheManager.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx
index 11465d7..9d0a63e 100644
--- a/Source/cmCacheManager.cxx
+++ b/Source/cmCacheManager.cxx
@@ -252,7 +252,7 @@ bool cmCacheManager::LoadCache(const char* path,
{
std::string currentcwd = path;
std::string oldcwd = this->GetCacheValue("CMAKE_CACHEFILE_DIR");
-#ifdef _WIN32
+#if defined(_WIN32) || defined(__CYGWIN__)
currentcwd = cmSystemTools::LowerCase(currentcwd);
oldcwd = cmSystemTools::LowerCase(oldcwd);
#endif // _WIN32