If the value is a path, collapse it (cleaner)

This commit is contained in:
Sebastien Barre 2001-08-19 07:36:46 -04:00
parent b817ee6596
commit 4dda26b40a
1 changed files with 5 additions and 0 deletions

View File

@ -126,6 +126,11 @@ bool cmSetCommand::InitialPass(std::vector<std::string>& args)
return true; return true;
} }
} }
// if value is a path, collapse it (cleaner)
if (type == cmCacheManager::PATH || type == cmCacheManager::FILEPATH)
{
value = cmSystemTools::CollapseFullPath(value.c_str());
}
// if it is meant to be in the cache then define it in the cache // if it is meant to be in the cache then define it in the cache
if(cache) if(cache)
{ {