summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorGeoffrey Cross <geoff@cross.lu>2001-05-25 21:19:04 (GMT)
committerGeoffrey Cross <geoff@cross.lu>2001-05-25 21:19:04 (GMT)
commitbdfdfb73a2b2a4eec7763a50237aeb7cdf11f515 (patch)
treef93b76eb3fe6c120b9acf6815430237ceca3c7b5 /Source
parent07c4f9f145db9fe61b4b49dfb345fbcc29da311f (diff)
downloadCMake-bdfdfb73a2b2a4eec7763a50237aeb7cdf11f515.zip
CMake-bdfdfb73a2b2a4eec7763a50237aeb7cdf11f515.tar.gz
CMake-bdfdfb73a2b2a4eec7763a50237aeb7cdf11f515.tar.bz2
bug meaning that set(a b) just set a to "" and not to b
Diffstat (limited to 'Source')
-rw-r--r--Source/cmSetCommand.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmSetCommand.cxx b/Source/cmSetCommand.cxx
index e5869a8..576cae9 100644
--- a/Source/cmSetCommand.cxx
+++ b/Source/cmSetCommand.cxx
@@ -65,7 +65,13 @@ bool cmSetCommand::Invoke(std::vector<std::string>& 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;