mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[CMAKE] Fix empty dependencies.graphml being created
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user