summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-12-22 21:21:27 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-12-22 21:21:27 (GMT)
commit0bdb092a019c87825a88208d4fdaef77379e3004 (patch)
treeb04edec139322b0b81bd3d83c43114edf27bdef1 /Source/cmSystemTools.cxx
parentd79e3ae698413b0204c4819db1fbe25486c96fbf (diff)
downloadCMake-0bdb092a019c87825a88208d4fdaef77379e3004.zip
CMake-0bdb092a019c87825a88208d4fdaef77379e3004.tar.gz
CMake-0bdb092a019c87825a88208d4fdaef77379e3004.tar.bz2
ENH: add relative paths to visual studio 6 and 7 project files
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 72a2593..5c4f307 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1107,14 +1107,14 @@ std::string cmSystemTools::RelativePath(const char* local, const char* remote)
std::vector<std::string> fileSplit = cmSystemTools::SplitString(local);
std::vector<std::string> relativeSplit = cmSystemTools::SplitString(remote);
// count up how many mathing directory names there are from the start
- int sameCount = 0;
+ unsigned int sameCount = 0;
while(sameCount < fileSplit.size()-1 && sameCount < relativeSplit.size()-1 &&
fileSplit[sameCount] == relativeSplit[sameCount])
{
sameCount++;
}
// put in sameCount number of ../ into the path
- int i;
+ unsigned int i;
for(i = sameCount; i < fileSplit.size(); ++i)
{
relativePath += "../";