summaryrefslogtreecommitdiffstats
path: root/Source/cmMacroCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-02-23 15:26:42 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-02-23 15:26:42 (GMT)
commit6dc9a627b635617870945677b4868e212f4184ed (patch)
tree347d9d2da7d3ce7aff132273cefc68cd7d3e3f78 /Source/cmMacroCommand.cxx
parent88aeb64ddfb129701b6709f27531da0a885593eb (diff)
parentc021f59c1f2f3d892b621a9ba163b069f2a2f0a9 (diff)
downloadCMake-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.cxx10
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;