Did you test dependency checking?

Am 14.06.2012 13:06, schrieb akha...@svn.reactos.org:
Author: akhaldi
Date: Thu Jun 14 11:06:23 2012
New Revision: 56731

URL:http://svn.reactos.org/svn/reactos?rev=56731&view=rev
Log:
[CMAKE/MIDL]
* Alter the way we handle the dlldata generation with midl. This works around 
the warnings we get about multiple rules to generate proxy.dlldata.c.
* Brought to yo by Peter Kummel.

Modified:
     trunk/reactos/cmake/midl-support.cmake

Modified: trunk/reactos/cmake/midl-support.cmake
URL:http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/midl-support.cmake?rev=56731&r1=56730&r2=56731&view=diff
==============================================================================
--- trunk/reactos/cmake/midl-support.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/midl-support.cmake [iso-8859-1] Thu Jun 14 11:06:23 2012
@@ -38,16 +38,17 @@
      get_includes(_includes)
      get_defines(_defines)
      set(_chain_dependency "")
+    set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c 
PROPERTIES GENERATED TRUE)
      foreach(_idl_file ${ARGN})
          get_filename_component(_name_we ${_idl_file} NAME_WE)
          add_custom_command(
-            OUTPUT ${_name_we}_p.c ${_name_we}_p.h proxy.dlldata.c
+            OUTPUT ${_name_we}_p.c ${_name_we}_p.h
              COMMAND midl ${_includes} ${_defines} ${IDL_FLAGS} /client none 
/server none /proxy ${_name_we}_p.c /h ${_name_we}_p.h /dlldata proxy.dlldata.c 
${CMAKE_CURRENT_SOURCE_DIR}/${_idl_file}
              DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_idl_file} 
${_chain_dependency})
          list(APPEND _chain_dependency 
${CMAKE_CURRENT_BINARY_DIR}/${_name_we}_p.c)
          list(APPEND _chain_dependency 
${CMAKE_CURRENT_BINARY_DIR}/${_name_we}_p.h)
+        
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c 
PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_idl_file})
      endforeach()
-    set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c 
PROPERTIES GENERATED TRUE)
  endfunction()
function(add_rpc_files _type)






_______________________________________________
Ros-dev mailing list
Ros-dev@reactos.org
http://www.reactos.org/mailman/listinfo/ros-dev

Reply via email to