Removing trailing spaces after cache entry value.

This commit is contained in:
Berk Geveci 2001-07-25 09:40:22 -04:00
parent ac1112ad06
commit 9f7f282e5e
1 changed files with 4 additions and 3 deletions

View File

@ -124,9 +124,9 @@ bool cmCacheManager::LoadCache(const char* path,
const int bsize = 4096; const int bsize = 4096;
char buffer[bsize]; char buffer[bsize];
// input line is: key:type=value // input line is: key:type=value
cmRegularExpression reg("^([^:]*):([^=]*)=(.*)$"); cmRegularExpression reg("^([^:]*):([^=]*)=(.*[^\t ]|[\t ]*)[\t ]*$");
// input line is: "key":type=value // input line is: "key":type=value
cmRegularExpression regQuoted("^\"([^\"]*)\":([^=]*)=(.*)$"); cmRegularExpression regQuoted("^\"([^\"]*)\":([^=]*)=(.*[^\t ]|[\t ]*)[\t ]*$");
while(fin) while(fin)
{ {
// Format is key:type=value // Format is key:type=value
@ -168,7 +168,8 @@ bool cmCacheManager::LoadCache(const char* path,
} }
else else
{ {
cmSystemTools::Error("Parse error in cache file ", cacheFile.c_str()); cmSystemTools::Error("Parse error in cache file ", cacheFile.c_str(),
". Offending entry: ", buffer);
} }
} }
// if CMAKE version not found in the list file // if CMAKE version not found in the list file