diff options
Diffstat (limited to 'Source/cmGetCMakePropertyCommand.cxx')
-rw-r--r-- | Source/cmGetCMakePropertyCommand.cxx | 16 |
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]; |