Explorar o código

BUG: Needed to expand variables of definitions.

Brad King %!s(int64=24) %!d(string=hai) anos
pai
achega
fda98f8562
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      Source/cmAddDefinitionsCommand.cxx

+ 3 - 1
Source/cmAddDefinitionsCommand.cxx

@@ -51,7 +51,9 @@ bool cmAddDefinitionsCommand::InitialPass(std::vector<std::string>& args)
   for(std::vector<std::string>::iterator i = args.begin();
       i != args.end(); ++i)
     {
-    m_Makefile->AddDefineFlag((*i).c_str());
+    std::string str = *i;
+    m_Makefile->ExpandVariablesInString(str);
+    m_Makefile->AddDefineFlag(str.c_str());
     }
   return true;
 }