[CMAKE] Fix empty dependencies.graphml being created

This commit is contained in:
Mark Jansen
2021-02-07 14:02:01 +01:00
parent b809275cbe
commit 35103558e1

View File

@@ -18,12 +18,16 @@ function(add_dependency_edge _source _target)
endfunction()
function(add_dependency_header)
file(WRITE ${REACTOS_BINARY_DIR}/dependencies.graphml "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<graphml>\n <graph id=\"ReactOS dependencies\" edgedefault=\"directed\">\n")
if(GENERATE_DEPENDENCY_GRAPH)
file(WRITE ${REACTOS_BINARY_DIR}/dependencies.graphml "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<graphml>\n <graph id=\"ReactOS dependencies\" edgedefault=\"directed\">\n")
endif()
endfunction()
function(add_dependency_footer)
add_dependency_node(ntdll)
file(APPEND ${REACTOS_BINARY_DIR}/dependencies.graphml " </graph>\n</graphml>\n")
if(GENERATE_DEPENDENCY_GRAPH)
add_dependency_node(ntdll)
file(APPEND ${REACTOS_BINARY_DIR}/dependencies.graphml " </graph>\n</graphml>\n")
endif()
endfunction()
function(add_message_headers _type)