From bdfdfb73a2b2a4eec7763a50237aeb7cdf11f515 Mon Sep 17 00:00:00 2001 From: Geoffrey Cross Date: Fri, 25 May 2001 17:19:04 -0400 Subject: [PATCH] bug meaning that set(a b) just set a to "" and not to b --- Source/cmSetCommand.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/cmSetCommand.cxx b/Source/cmSetCommand.cxx index e5869a8aa8..576cae9bb8 100644 --- a/Source/cmSetCommand.cxx +++ b/Source/cmSetCommand.cxx @@ -65,7 +65,13 @@ bool cmSetCommand::Invoke(std::vector& args) cmCacheManager::CacheEntryType type = cmCacheManager::STRING; // required if cache const char* docstring = 0; // required if cache std::string::size_type cacheStart = 0; - if(args.size() == 4) + + if(args.size() == 2) + { + // SET (VAR value ) + value= args[1]; + } + else if(args.size() == 4) { // SET (VAR CACHE TYPE "doc String") cache = true;