summaryrefslogtreecommitdiffstats
path: root/Source/cmGetCMakePropertyCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-04 00:47:44 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-04 00:47:44 (GMT)
commitc7f1198a0062a24edf3166e5f4cfcdcbb8b556f7 (patch)
tree21c76e21802cf818682bdb187b2152f7e705f16f /Source/cmGetCMakePropertyCommand.cxx
parent32bfe66b5d261bfc6c9f43f045f56651b8f012ea (diff)
downloadCMake-c7f1198a0062a24edf3166e5f4cfcdcbb8b556f7.zip
CMake-c7f1198a0062a24edf3166e5f4cfcdcbb8b556f7.tar.gz
CMake-c7f1198a0062a24edf3166e5f4cfcdcbb8b556f7.tar.bz2
ENH: Add accessor for the list of commands
Diffstat (limited to 'Source/cmGetCMakePropertyCommand.cxx')
-rw-r--r--Source/cmGetCMakePropertyCommand.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmGetCMakePropertyCommand.cxx b/Source/cmGetCMakePropertyCommand.cxx
index 8788009..0b66b14 100644
--- a/Source/cmGetCMakePropertyCommand.cxx
+++ b/Source/cmGetCMakePropertyCommand.cxx
@@ -47,6 +47,22 @@ bool cmGetCMakePropertyCommand::InitialPass(
output += vars[cc];
}
}
+ else if ( args[1] == "COMMANDS" )
+ {
+ cmake::RegisteredCommandsMap::iterator cmds
+ = m_Makefile->GetCMakeInstance()->GetCommands()->begin();
+ for (cc=0 ;
+ cmds != m_Makefile->GetCMakeInstance()->GetCommands()->end();
+ ++ cmds )
+ {
+ if ( cc > 0 )
+ {
+ output += ";";
+ }
+ output += cmds->first.c_str();
+ cc++;
+ }
+ }
else
{
std::string emsg = "Unknown CMake property: " + args[1];