summaryrefslogtreecommitdiffstats
path: root/Source/cmGraphVizWriter.cxx
diff options
context:
space:
mode:
authorAndrey Mishchenko <mishchea@gmail.com>2015-12-09 17:15:52 (GMT)
committerBrad King <brad.king@kitware.com>2015-12-10 14:22:06 (GMT)
commite0ad72d8af9bfba80d24f823d79440ebb9136bda (patch)
tree0bf54ca3a3bf9567f4b32c8a3efa657c8ba54d0a /Source/cmGraphVizWriter.cxx
parentdc873f6eef1e6f952cf3d09be7568b03fbf8c6d3 (diff)
downloadCMake-e0ad72d8af9bfba80d24f823d79440ebb9136bda.zip
CMake-e0ad72d8af9bfba80d24f823d79440ebb9136bda.tar.gz
CMake-e0ad72d8af9bfba80d24f823d79440ebb9136bda.tar.bz2
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.
Diffstat (limited to 'Source/cmGraphVizWriter.cxx')
-rw-r--r--Source/cmGraphVizWriter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGraphVizWriter.cxx b/Source/cmGraphVizWriter.cxx
index a63b6e3..448306f 100644
--- a/Source/cmGraphVizWriter.cxx
+++ b/Source/cmGraphVizWriter.cxx
@@ -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;
}