[ros-diffs] [akhaldi] 57894: [CMAKE] * Addendum to r57893.

akhaldi at svn.reactos.org akhaldi at svn.reactos.org
Wed Dec 12 15:39:08 UTC 2012


Author: akhaldi
Date: Wed Dec 12 15:39:08 2012
New Revision: 57894

URL: http://svn.reactos.org/svn/reactos?rev=57894&view=rev
Log:
[CMAKE]
* Addendum to r57893.

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=57894&r1=57893&r2=57894&view=diff
==============================================================================
--- trunk/reactos/cmake/midl-support.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/midl-support.cmake [iso-8859-1] Wed Dec 12 15:39:08 2012
@@ -79,20 +79,22 @@
     endforeach()
 endfunction()
 
-function(generate_idl_iids _idl_file)
-    get_includes(_includes)
-    get_defines(_defines)
+function(generate_idl_iids)
+    foreach(_idl_file ${ARGN})
+        get_includes(_includes)
+        get_defines(_defines)
 
-    if(NOT IS_ABSOLUTE ${_idl_file})
-        set(_idl_file "${CMAKE_CURRENT_SOURCE_DIR}/${_idl_file}")
-    endif()
+        if(NOT IS_ABSOLUTE ${_idl_file})
+            set(_idl_file "${CMAKE_CURRENT_SOURCE_DIR}/${_idl_file}")
+        endif()
 
-    get_filename_component(_name_we ${_idl_file} NAME_WE)
-    add_custom_command(
-        OUTPUT ${_name_we}_i.c ${_name_we}_i.h
-        COMMAND midl ${_includes} ${_defines} ${IDL_FLAGS} /h ${_name_we}_i.h /client none /server none /iid ${_name_we}_i.c /proxy ${_name_we}_dummy_p.c ${_idl_file}
-        DEPENDS ${_idl_file})
-    set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_name_we}_i.c PROPERTIES GENERATED TRUE)
+        get_filename_component(_name_we ${_idl_file} NAME_WE)
+        add_custom_command(
+            OUTPUT ${_name_we}_i.c ${_name_we}_i.h
+            COMMAND midl ${_includes} ${_defines} ${IDL_FLAGS} /h ${_name_we}_i.h /client none /server none /iid ${_name_we}_i.c /proxy ${_name_we}_dummy_p.c ${_idl_file}
+            DEPENDS ${_idl_file})
+        set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_name_we}_i.c PROPERTIES GENERATED TRUE)
+    endforeach()
 endfunction()
 
 function(add_iid_library _target)




More information about the Ros-diffs mailing list