Graphviz: Fix handling of spaces in GRAPHVIZ_GRAPH_NAME

Without this patch, `SET (GRAPHVIZ_GRAPH_NAME "hello world")` does not
work (it results in a parsing error in GraphViz when the generated
output is processed), but `SET (GRAPHVIZ_GRAPH_NAME "\"hello world\"")`
does.
This commit is contained in:
Andrey Mishchenko 2015-12-09 12:15:52 -05:00 committed by Brad King
parent dc873f6eef
commit e0ad72d8af
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ void cmGraphVizWriter::WriteGlobalFile(const char* fileName)
void cmGraphVizWriter::WriteHeader(cmGeneratedFileStream& str) const
{
str << this->GraphType << " " << this->GraphName << " {" << std::endl;
str << this->GraphType << " \"" << this->GraphName << "\" {" << std::endl;
str << this->GraphHeader << std::endl;
}