summaryrefslogtreecommitdiffstats
path: root/Source/cmMacroCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-06 22:54:13 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-06 22:54:13 (GMT)
commit96d561aabc7ca453396b8d419b3398dea6b13572 (patch)
treecfb721d465938dc9d7f5454854897414c8006bd7 /Source/cmMacroCommand.cxx
parent7d6aaf23e9c3d1ffe81c85791191658b797271f2 (diff)
downloadCMake-96d561aabc7ca453396b8d419b3398dea6b13572.zip
CMake-96d561aabc7ca453396b8d419b3398dea6b13572.tar.gz
CMake-96d561aabc7ca453396b8d419b3398dea6b13572.tar.bz2
ENH: Add option to retrieve list of macros. Close Bug #25 - Get_CMAKE_PROPERTIES
Diffstat (limited to 'Source/cmMacroCommand.cxx')
-rw-r--r--Source/cmMacroCommand.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx
index 62d6724..391434e 100644
--- a/Source/cmMacroCommand.cxx
+++ b/Source/cmMacroCommand.cxx
@@ -30,6 +30,15 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf)
if(!expandedArguments.empty() && (expandedArguments[0] == m_Args[0]))
{
m_Executing = true;
+ std::string name = m_Args[0];
+ std::vector<std::string>::size_type cc;
+ name += "(";
+ for ( cc = 0; cc < m_Args.size(); cc ++ )
+ {
+ name += " " + m_Args[cc];
+ }
+ name += " )";
+ mf.AddMacro(m_Args[0].c_str(), name.c_str());
return true;
}
}