diff options
author | Brad King <brad.king@kitware.com> | 2015-02-23 15:26:42 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-02-23 15:26:42 (GMT) |
commit | 6dc9a627b635617870945677b4868e212f4184ed (patch) | |
tree | 347d9d2da7d3ce7aff132273cefc68cd7d3e3f78 /Source/cmMacroCommand.cxx | |
parent | 88aeb64ddfb129701b6709f27531da0a885593eb (diff) | |
parent | c021f59c1f2f3d892b621a9ba163b069f2a2f0a9 (diff) | |
download | CMake-6dc9a627b635617870945677b4868e212f4184ed.zip CMake-6dc9a627b635617870945677b4868e212f4184ed.tar.gz CMake-6dc9a627b635617870945677b4868e212f4184ed.tar.bz2 |
Merge topic 'minor-cleanups'
c021f59c cmMakefile: Store macro list in a vector not in a map.
2d130896 cmMakefile: Fix list of macros generation.
f1969234 cmFunctionCommand: Remove ineffectual code.
1116698a cmTarget: Don't needlessly clear vectors in the destructor.
Diffstat (limited to 'Source/cmMacroCommand.cxx')
-rw-r--r-- | Source/cmMacroCommand.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx index 29e8cb1..12c8576 100644 --- a/Source/cmMacroCommand.cxx +++ b/Source/cmMacroCommand.cxx @@ -224,15 +224,7 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf, // if this is the endmacro for this macro then execute if (!this->Depth) { - std::string name = this->Args[0]; - name += "("; - if (!this->Args.empty()) - { - name += " "; - name += cmJoin(this->Args, " "); - } - name += " )"; - mf.AddMacro(this->Args[0].c_str(), name.c_str()); + mf.AddMacro(this->Args[0].c_str()); // create a new command and add it to cmake cmMacroHelperCommand *f = new cmMacroHelperCommand(); f->Args = this->Args; |