<div class="gmail_quote">On Wed, Sep 23, 2009 at 8:33 AM, Hendrik Sattler <span dir="ltr">&lt;<a href="mailto:post@hendrik-sattler.de">post@hendrik-sattler.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Zitat von Philip Lowman &lt;<a href="mailto:philip@yhbt.com" target="_blank">philip@yhbt.com</a>&gt;:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

AFAIK, this is possible with environment variables BISON_M4 or M4, see:<div class="im"><br>
<a href="http://osdir.com/ml/parsers.bison.bugs/2007-05/msg00012.html" target="_blank">http://osdir.com/ml/parsers.bison.bugs/2007-05/msg00012.html</a><br>
<br>
If that works, maybe the standard bison call should be replaced with a call<br>
to a cmake script that sets this variable correctly.<br>
<br>
</div></blockquote><div class="im">
<br>
Excellent find!  I don&#39;t think add_custom_command supports adding<br>
environment variables though..?<br>
<br>
<a href="http://public.kitware.com/Bug/view.php?id=9587" target="_blank">http://public.kitware.com/Bug/view.php?id=9587</a><br>
</div></blockquote>
<br>
That&#39;s why I suggested a cmake script that wraps it. This could actually be generalized by add_custom_command():<br>
If environment variables are needed, automatically wrap the command with a cmake script.<br>
<br>
Currently, you have to do that manually.<br></blockquote><div><br>
Ah, I understand what you&#39;re getting at now.  I&#39;ll add a script for this as I&#39;ve indicated in the bug report. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font color="#888888">

</font></blockquote></div><br>-- <br>Philip Lowman<br>