cmCustomCommandGenerator: refactor GetComment to return std::string

Refactoring was done because EvaluateComment leaked memory.
7 files changed