From 4dda26b40a51d628e368542239653af6764877e2 Mon Sep 17 00:00:00 2001 From: Sebastien Barre Date: Sun, 19 Aug 2001 07:36:46 -0400 Subject: If the value is a path, collapse it (cleaner) --- Source/cmSetCommand.cxx | 5 +++++ 1 file changed, 5 insertions(+) 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& 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) { -- cgit v0.12