summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-09-15 17:33:58 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-09-15 17:33:58 (GMT)
commitdf82ea0ad0bb2501fbc6e53396716f9329ca8a74 (patch)
tree9ddf6753eead59395c8d957de76ee5f9a7a34530 /Source
parentf188d46431fc306e247b60d39e155aec63c43ea5 (diff)
downloadCMake-df82ea0ad0bb2501fbc6e53396716f9329ca8a74.zip
CMake-df82ea0ad0bb2501fbc6e53396716f9329ca8a74.tar.gz
CMake-df82ea0ad0bb2501fbc6e53396716f9329ca8a74.tar.bz2
BUG: Attempt to fix bug on Windows (and apple) where files returned are all lowercase
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlob.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmGlob.cxx b/Source/cmGlob.cxx
index 8454384..613bc3c 100644
--- a/Source/cmGlob.cxx
+++ b/Source/cmGlob.cxx
@@ -182,16 +182,16 @@ void cmGlob::RecurseDirectory(const std::string& dir, bool dir_only)
#endif
fullname = dir + "/" + fname;
- if ( !dir_only || !cmsys::SystemTools::FileIsDirectory(fullname.c_str()) )
+ if ( !dir_only || !cmsys::SystemTools::FileIsDirectory(realname.c_str()) )
{
if ( m_Internals->Expressions[m_Internals->Expressions.size()-1].find(fname.c_str()) )
{
- m_Internals->Files.push_back(fullname);
+ m_Internals->Files.push_back(realname);
}
}
- if ( cmsys::SystemTools::FileIsDirectory(fullname.c_str()) )
+ if ( cmsys::SystemTools::FileIsDirectory(realname.c_str()) )
{
- this->RecurseDirectory(fullname, dir_only);
+ this->RecurseDirectory(realname, dir_only);
}
}
}
@@ -251,7 +251,7 @@ void cmGlob::ProcessDirectory(std::string::size_type start,
//std::cout << "Match: " << m_Internals->TextExpressions[start].c_str() << std::endl;
//std::cout << "Full name: " << fullname << std::endl;
- if ( (!dir_only || !last) && !cmsys::SystemTools::FileIsDirectory(fullname.c_str()) )
+ if ( (!dir_only || !last) && !cmsys::SystemTools::FileIsDirectory(realname.c_str()) )
{
continue;
}