<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5">Then you haven&#39;t read or understood my message ;-) Instead of calling</div>
</div>
idlcc directly in the add_custom_command, you call a wrapper script,<br>
that sets the PATH environment variable, and *then* invokes idlcc.<br></blockquote><div><br></div><div>Ok, I implemented your solution and it works, thanks!</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
One additional comment: Creating output in the source tree is a *very*<br>
bad habit. Some people (including me) consider it to be obscene... ;-)<br>
Unless you are doing an in-source build (which you shouldn&#39;t, for the<br>
same reasons you shouldn&#39;t create output in the source tree), a build<br>
system should *never* modify the source tree.<br></blockquote><div><br></div><div>Yeah, you are right, I didn&#39;t like that too, I&#39;ve changed the system to output the interfaces in ${PROJECT_BINARY_DIR}/inc/intf,</div>
<div>the only thing I don&#39;t like is that to make this work, inside the &quot;interface&quot; CMakeLists.txt I&#39;ve had to insert this:</div><div><br></div><div><div>execute_process(</div><div>COMMAND cp -r &quot;${PROJECT_SOURCE_DIR}/inc/intf&quot; &quot;${PROJECT_BINARY_DIR}/inc/&quot;</div>
<div>)</div></div><div><br></div><div>To copy the interface files that are actually hand written and then committed to the repository in the binary path.</div><div><br></div><div>It works, but I suppose I should add a mechanism to copy one of these files again if the user changes it... And i fear the only way to do it is to add a list of all these files by hand to the interfaces CMakeLists.txt and make the copy process a custom target that depends from the file in the source tree</div>
<div><br></div></div>-- <br>Bye,
<div> Gabry</div>