Author: jgardou
Date: Mon Dec 27 23:57:12 2010
New Revision: 50177
URL:
http://svn.reactos.org/svn/reactos?rev=50177&view=rev
Log:
[CMAKE]
- use already set variable for idl file compilation
Modified:
branches/cmake-bringup/CMakeMacros.cmake
Modified: branches/cmake-bringup/CMakeMacros.cmake
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/CMakeMacros.cmake…
==============================================================================
--- branches/cmake-bringup/CMakeMacros.cmake [iso-8859-1] (original)
+++ branches/cmake-bringup/CMakeMacros.cmake [iso-8859-1] Mon Dec 27 23:57:12 2010
@@ -241,15 +241,10 @@
macro(add_idl_interface IDL_FILE)
custom_incdefs()
- if(ARCH MATCHES i386)
- set(platform_flags "-m32 --win32")
- elseif(ARCH MATCHES amd64)
- set(platform_flags "-m64 --win64")
- endif()
get_filename_component(FILE ${IDL_FILE} NAME_WE)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${FILE}_i.c
- COMMAND ${IDL_COMPILER} ${result_incs} ${result_defs} ${platform_flags} -u -U
${CMAKE_CURRENT_BINARY_DIR}/${FILE}_i.c ${CMAKE_CURRENT_SOURCE_DIR}/${IDL_FILE}
+ COMMAND ${IDL_COMPILER} ${result_incs} ${result_defs} ${IDL_FLAGS} -u -U
${CMAKE_CURRENT_BINARY_DIR}/${FILE}_i.c ${CMAKE_CURRENT_SOURCE_DIR}/${IDL_FILE}
DEPENDS ${IDL_FILE})
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${FILE}_i.c PROPERTIES
GENERATED TRUE)
endmacro()