mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[CMAKE]
- use already set variable for idl file compilation svn path=/branches/cmake-bringup/; revision=50177
This commit is contained in:
parent
3f62bce4ad
commit
17243e2930
1 changed files with 1 additions and 6 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue