From fda98f856286aa5622e1fc00d7ef32196e04e9b5 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 1 Aug 2001 16:13:13 -0400 Subject: [PATCH] BUG: Needed to expand variables of definitions. --- Source/cmAddDefinitionsCommand.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/cmAddDefinitionsCommand.cxx b/Source/cmAddDefinitionsCommand.cxx index 0e1e21617..19a0ad7ae 100644 --- a/Source/cmAddDefinitionsCommand.cxx +++ b/Source/cmAddDefinitionsCommand.cxx @@ -51,7 +51,9 @@ bool cmAddDefinitionsCommand::InitialPass(std::vector& args) for(std::vector::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; }