diff options
author | Brad King <brad.king@kitware.com> | 2001-08-01 20:13:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2001-08-01 20:13:13 (GMT) |
commit | fda98f856286aa5622e1fc00d7ef32196e04e9b5 (patch) | |
tree | f5c679a13e8826d59c01452ceceb4afdc4fb86d1 | |
parent | caab013c9abc5a317d5a2bc9b680ed98e4c5871f (diff) | |
download | CMake-fda98f856286aa5622e1fc00d7ef32196e04e9b5.zip CMake-fda98f856286aa5622e1fc00d7ef32196e04e9b5.tar.gz CMake-fda98f856286aa5622e1fc00d7ef32196e04e9b5.tar.bz2 |
BUG: Needed to expand variables of definitions.
-rw-r--r-- | Source/cmAddDefinitionsCommand.cxx | 4 |
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; } |