On Mar 8, 2011, at 5:10 AM, [email protected] wrote:

> 
> foreach(in_file ${ARGN}) 
> 
> .... 
> 
> ADD_CUSTOM_COMMAND( 
>         OUTPUT ${IDL_OUTPUT_DIR}/${out_file}.h 
>                 ${IDL_OUTPUT_DIR}/${out_file}.tlb 
>         DEPENDS ${in_file} 
>         COMMAND(${MIDL_EXECUTABLE} ${in_file} <insert other args here> 
>         WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} 
> ) 
> 
> .... 
> 
> endforeach() 

> Did i miss something? 
> 
> -mika 

How is "out_file" defined?
At the beginning of the second run, what files are in the {IDL_OUTPUT_DIR} 
directory?
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to