summaryrefslogtreecommitdiffstats
path: root/Source/cmAddDefinitionsCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-08-01 20:13:13 (GMT)
committerBrad King <brad.king@kitware.com>2001-08-01 20:13:13 (GMT)
commitfda98f856286aa5622e1fc00d7ef32196e04e9b5 (patch)
treef5c679a13e8826d59c01452ceceb4afdc4fb86d1 /Source/cmAddDefinitionsCommand.cxx
parentcaab013c9abc5a317d5a2bc9b680ed98e4c5871f (diff)
downloadCMake-fda98f856286aa5622e1fc00d7ef32196e04e9b5.zip
CMake-fda98f856286aa5622e1fc00d7ef32196e04e9b5.tar.gz
CMake-fda98f856286aa5622e1fc00d7ef32196e04e9b5.tar.bz2
BUG: Needed to expand variables of definitions.
Diffstat (limited to 'Source/cmAddDefinitionsCommand.cxx')
-rw-r--r--Source/cmAddDefinitionsCommand.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmAddDefinitionsCommand.cxx b/Source/cmAddDefinitionsCommand.cxx
index 0e1e216..19a0ad7 100644
--- a/Source/cmAddDefinitionsCommand.cxx
+++ b/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;
}