summaryrefslogtreecommitdiffstats
path: root/Source/cmSetCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmSetCommand.cxx')
-rw-r--r--Source/cmSetCommand.cxx20
1 files changed, 19 insertions, 1 deletions
diff --git a/Source/cmSetCommand.cxx b/Source/cmSetCommand.cxx
index 122df61..8ab33e4 100644
--- a/Source/cmSetCommand.cxx
+++ b/Source/cmSetCommand.cxx
@@ -41,7 +41,25 @@ bool cmSetCommand::InitialPass(std::vector<std::string> const& args)
cmCacheManager::CacheEntryType type = cmCacheManager::STRING; // required if cache
const char* docstring = 0; // required if cache
std::string::size_type cacheStart = 0;
-
+
+ // check for SET(VAR v1 v2 ... vn)
+ // and create
+ if(args.size() > 2)
+ {
+ if(args[1] != "CACHE" && args[2] != "CACHE")
+ {
+ value = args[1];
+ for(int i =2; i < args.size(); ++i)
+ {
+ value += ";";
+ value += args[i];
+ }
+ m_Makefile->AddDefinition(variable, value.c_str());
+ return true;
+ }
+ }
+
+
if(args.size() == 2)
{
// SET (VAR value )