mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 04:13:37 +00:00
[CMAKE]
- use already set variable for idl file compilation svn path=/branches/cmake-bringup/; revision=50177
This commit is contained in:
+1
-6
@@ -241,15 +241,10 @@ endmacro()
|
||||
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user