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 authored and Brad King committed 2015-12-10 09:22:06 -05:00
1 parent dc873f6eef
commit e0ad72d8af
1 file changed
+1 -1
+1 -1
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;
}