[CMAKE]
authorJérôme Gardou <jerome.gardou@reactos.org>
Mon, 27 Dec 2010 23:57:12 +0000 (23:57 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Mon, 27 Dec 2010 23:57:12 +0000 (23:57 +0000)
  - use already set variable for idl file compilation

svn path=/branches/cmake-bringup/; revision=50177

CMakeMacros.cmake

index 5c0b50f..81a0a4b 100644 (file)
@@ -241,15 +241,10 @@ endmacro()
 \r
 macro(add_idl_interface IDL_FILE)\r
     custom_incdefs()\r
-    if(ARCH MATCHES i386)\r
-        set(platform_flags "-m32 --win32")\r
-    elseif(ARCH MATCHES amd64)\r
-        set(platform_flags "-m64 --win64")\r
-    endif()\r
     get_filename_component(FILE ${IDL_FILE} NAME_WE)\r
     add_custom_command(\r
         OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${FILE}_i.c\r
-        COMMAND ${IDL_COMPILER} ${result_incs} ${result_defs} ${platform_flags} -u -U ${CMAKE_CURRENT_BINARY_DIR}/${FILE}_i.c ${CMAKE_CURRENT_SOURCE_DIR}/${IDL_FILE}\r
+        COMMAND ${IDL_COMPILER} ${result_incs} ${result_defs} ${IDL_FLAGS} -u -U ${CMAKE_CURRENT_BINARY_DIR}/${FILE}_i.c ${CMAKE_CURRENT_SOURCE_DIR}/${IDL_FILE}\r
         DEPENDS ${IDL_FILE})\r
     set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${FILE}_i.c PROPERTIES GENERATED TRUE)\r
 endmacro()\r