From 0f1a6952bb4c2fffce2264e1136c72a01a15055e Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Mon, 29 Nov 2010 18:33:07 +0000 Subject: [PATCH] [CMAKE] - Add auto stubs support to the gcc based toolchains. svn path=/branches/cmake-bringup/; revision=49864 --- gcc.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc.cmake b/gcc.cmake index c01488c0f84..a9b9e5bcabf 100644 --- a/gcc.cmake +++ b/gcc.cmake @@ -200,11 +200,12 @@ endmacro() macro(spec2def _dllname _spec_file) get_filename_component(_file ${_spec_file} NAME_WE) add_custom_command( - OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_file}.def - COMMAND native-spec2def -n=${_dllname} -d=${CMAKE_CURRENT_BINARY_DIR}/${_file}.def ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file} + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_file}.def ${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c + COMMAND native-spec2def -n=${_dllname} -d=${CMAKE_CURRENT_BINARY_DIR}/${_file}.def -s=${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file} DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file}) set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_file}.def PROPERTIES GENERATED TRUE EXTERNAL_OBJECT TRUE) + set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c PROPERTIES GENERATED TRUE) endmacro() # Optional 3rd parameter: dllname