Author: spetreolle
Date: Fri May 20 21:31:47 2011
New Revision: 51829

URL: http://svn.reactos.org/svn/reactos?rev=51829&view=rev
Log:
Fix dependency graph in yEd.
- ntdll target was not found when added in first.
- ntoskrnl has to be in the graph despite being an EXECUTABLE.

Modified:
    trunk/reactos/CMakeMacros.cmake

Modified: trunk/reactos/CMakeMacros.cmake
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/CMakeMacros.cmake?rev=51829&r1=51828&r2=51829&view=diff
==============================================================================
--- trunk/reactos/CMakeMacros.cmake [iso-8859-1] (original)
+++ trunk/reactos/CMakeMacros.cmake [iso-8859-1] Fri May 20 21:31:47 2011
@@ -42,7 +42,7 @@
 macro(add_dependency_node _node)
     if(GENERATE_DEPENDENCY_GRAPH)
         get_target_property(_type ${_node} TYPE)
-        if(_type MATCHES SHARED_LIBRARY)
+        if(_type MATCHES SHARED_LIBRARY OR ${_node} MATCHES ntoskrnl)
             file(APPEND ${REACTOS_BINARY_DIR}/dependencies.graphml "    <node 
id=\"${_node}\"/>\n")
         endif()
      endif()
@@ -59,10 +59,10 @@
 
 macro(add_dependency_header)
     file(APPEND ${REACTOS_BINARY_DIR}/dependencies.graphml "<?xml 
version=\"1.0\" encoding=\"UTF-8\"?>\n<graphml>\n  <graph id=\"ReactOS 
dependencies\" edgedefault=\"directed\">\n")
+endmacro()
+
+macro(add_dependency_footer)
     add_dependency_node(ntdll)
-endmacro()
-
-macro(add_dependency_footer)
     file(APPEND ${REACTOS_BINARY_DIR}/dependencies.graphml "  
</graph>\n</graphml>\n")
 endmacro()
 


Reply via email to