<br><font size=2 face="sans-serif">Yes it works..</font>
<br>
<br><font size=2 face="sans-serif">Thanks for the help.</font>
<br>
<br><font size=2 face="sans-serif">I need to add this to my list of things
to remember.</font>
<br>
<br>
<br><font size=2 face="sans-serif">Now i still have the problem of the
missing tlb file to fix, but i'll handle that on my own.</font>
<br>
<br><font size=2 face="sans-serif">-mika</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Mika.Rajala@patria.fi</b>
</font>
<br><font size=1 face="sans-serif">Sent by: cmake-bounces@cmake.org</font>
<p><font size=1 face="sans-serif">08.03.2011 13:42</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">cmake@cmake.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [CMake] Run/build custom command/target
only when "input" files
change</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Second try, replied to sender directly :)</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Now that i checked the IDL_OUTPUT_DIR i found out that the second
output file is always missing, the .tlb one.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Maybe this is why it always runs that command?</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Testing..</font><font size=3> <br>
<br>
<br>
</font>
<table width=100%>
<tr valign=top>
<td width=37%><font size=1 face="sans-serif"><b>Richard Wackerbarth <richard@NFSNet.org></b>
<br>
Sent by: cmake-bounces@cmake.org</font><font size=3> </font>
<p><font size=1 face="sans-serif">08.03.2011 13:18</font><font size=3>
</font>
<td width=62%>
<br>
<table width=100%>
<tr valign=top>
<td width=13%>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td width=86%><font size=1 face="sans-serif">Mika.Rajala@patria.fi</font><font size=3>
</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">cmake@cmake.org</font><font size=3>
</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [CMake] Run/build custom command/target
only when "input" files change</font></table>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=49%>
<td width=50%></table>
<br></table>
<br><font size=3><br>
<br>
</font><font size=2><tt><br>
<br>
On Mar 8, 2011, at 5:10 AM, Mika.Rajala@patria.fi wrote:<br>
<br>
> <br>
> foreach(in_file ${ARGN}) <br>
> <br>
> .... <br>
> <br>
> ADD_CUSTOM_COMMAND( <br>
> OUTPUT ${IDL_OUTPUT_DIR}/${out_file}.h
<br>
> ${IDL_OUTPUT_DIR}/${out_file}.tlb
<br>
> DEPENDS ${in_file} <br>
> COMMAND(${MIDL_EXECUTABLE} ${in_file}
<insert other args here> <br>
> WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
<br>
> ) <br>
> <br>
> .... <br>
> <br>
> endforeach() <br>
<br>
> Did i miss something? <br>
> <br>
> -mika <br>
<br>
How is "out_file" defined?<br>
At the beginning of the second run, what files are in the {IDL_OUTPUT_DIR}
directory?<br>
_______________________________________________<br>
Powered by www.kitware.com<br>
<br>
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br>
<br>
Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ<br>
<br>
Follow this link to subscribe/unsubscribe:<br>
http://www.cmake.org/mailman/listinfo/cmake</tt></font><font size=3><br>
</font><font size=2><tt>_______________________________________________<br>
Powered by www.kitware.com<br>
<br>
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br>
<br>
Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ<br>
<br>
Follow this link to subscribe/unsubscribe:<br>
http://www.cmake.org/mailman/listinfo/cmake</tt></font>
<br>