diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2001-08-19 11:36:46 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2001-08-19 11:36:46 (GMT) |
commit | 4dda26b40a51d628e368542239653af6764877e2 (patch) | |
tree | a01214564b3b02459928f3ed9f2e94e2ec47fa5a /Source/cmSetCommand.cxx | |
parent | b817ee6596f43a658c1e1499ba7da67c096df792 (diff) | |
download | CMake-4dda26b40a51d628e368542239653af6764877e2.zip CMake-4dda26b40a51d628e368542239653af6764877e2.tar.gz CMake-4dda26b40a51d628e368542239653af6764877e2.tar.bz2 |
If the value is a path, collapse it (cleaner)
Diffstat (limited to 'Source/cmSetCommand.cxx')
-rw-r--r-- | Source/cmSetCommand.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmSetCommand.cxx b/Source/cmSetCommand.cxx index 00e1bc5..c25065c 100644 --- a/Source/cmSetCommand.cxx +++ b/Source/cmSetCommand.cxx @@ -126,6 +126,11 @@ bool cmSetCommand::InitialPass(std::vector<std::string>& args) 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(cache) { |