diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-12-10 21:47:37 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-12-10 21:47:37 (GMT) |
commit | 3893ee72d2d5a04889cc1056b56029c9d60393c0 (patch) | |
tree | 3d96e526b726e7c0f2965489f74f2655776d6390 /Source/cmSourceGroup.cxx | |
parent | ab64db6ee84604c361a2d6f279398f7c9d3247f5 (diff) | |
download | CMake-3893ee72d2d5a04889cc1056b56029c9d60393c0.zip CMake-3893ee72d2d5a04889cc1056b56029c9d60393c0.tar.gz CMake-3893ee72d2d5a04889cc1056b56029c9d60393c0.tar.bz2 |
Add comment support, so that you can see in build process what the custom command does
Diffstat (limited to 'Source/cmSourceGroup.cxx')
-rw-r--r-- | Source/cmSourceGroup.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmSourceGroup.cxx b/Source/cmSourceGroup.cxx index b94ad61..081f299 100644 --- a/Source/cmSourceGroup.cxx +++ b/Source/cmSourceGroup.cxx @@ -80,6 +80,7 @@ void cmSourceGroup::AddCustomCommand(const cmCustomCommand &cmd) CommandFiles& cmdFiles = m_BuildRules[cmd.GetSourceName()].m_Commands[commandAndArgs]; cmdFiles.m_Command = cmd.GetCommand(); + cmdFiles.m_Comment = cmd.GetComment(); cmdFiles.m_Arguments = cmd.GetArguments(); cmdFiles.m_Depends.insert(cmd.GetDepends().begin(),cmd.GetDepends().end()); cmdFiles.m_Outputs.insert(cmd.GetOutputs().begin(),cmd.GetOutputs().end()); @@ -93,6 +94,7 @@ void cmSourceGroup::AddCustomCommand(const cmCustomCommand &cmd) { // The command did not exist. Add it. commands[commandAndArgs].m_Command = cmd.GetCommand(); + commands[commandAndArgs].m_Comment = cmd.GetComment(); commands[commandAndArgs].m_Arguments = cmd.GetArguments(); commands[commandAndArgs].m_Depends.insert(cmd.GetDepends().begin(), cmd.GetDepends().end()); |