summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/QCMake.cxx
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2009-03-30 20:34:28 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2009-03-30 20:34:28 (GMT)
commit79a3644e8079915990c486298557220aed499117 (patch)
tree36caee048da8064f22ab30dd50542499dba5a87a /Source/QtDialog/QCMake.cxx
parent88184bb698f767634abdfe09a4eb5b3e58536293 (diff)
downloadCMake-79a3644e8079915990c486298557220aed499117.zip
CMake-79a3644e8079915990c486298557220aed499117.tar.gz
CMake-79a3644e8079915990c486298557220aed499117.tar.bz2
BUG: Fix inconsistency with lowercase drive letters on Windows.
Diffstat (limited to 'Source/QtDialog/QCMake.cxx')
-rw-r--r--Source/QtDialog/QCMake.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/QtDialog/QCMake.cxx b/Source/QtDialog/QCMake.cxx
index f007160..580eacc 100644
--- a/Source/QtDialog/QCMake.cxx
+++ b/Source/QtDialog/QCMake.cxx
@@ -82,8 +82,10 @@ void QCMake::loadCache(const QString& dir)
this->setBinaryDirectory(dir);
}
-void QCMake::setSourceDirectory(const QString& dir)
+void QCMake::setSourceDirectory(const QString& _dir)
{
+ QString dir =
+ cmSystemTools::GetActualCaseForPath(_dir.toAscii().data()).c_str();
if(this->SourceDirectory != dir)
{
this->SourceDirectory = QDir::fromNativeSeparators(dir);
@@ -91,8 +93,10 @@ void QCMake::setSourceDirectory(const QString& dir)
}
}
-void QCMake::setBinaryDirectory(const QString& dir)
+void QCMake::setBinaryDirectory(const QString& _dir)
{
+ QString dir =
+ cmSystemTools::GetActualCaseForPath(_dir.toAscii().data()).c_str();
if(this->BinaryDirectory != dir)
{
this->BinaryDirectory = QDir::fromNativeSeparators(dir);