<div class="gmail_quote">On Wed, Sep 23, 2009 at 5:52 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;">
Zitat von Philip Lowman &lt;<a href="mailto:philip@yhbt.com" target="_blank">philip@yhbt.com</a>&gt;:<div class="im"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
FWIW, FindFLEX.cmake and FindBISON.cmake were both recently checked into<br>
CMake CVS and might be worth a look.<br>
<br>
<a href="http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/FindFLEX.cmake?root=CMake&amp;view=log" target="_blank">http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/FindFLEX.cmake?root=CMake&amp;view=log</a><br>
<a href="http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/FindBISON.cmake?root=CMake&amp;view=log" target="_blank">http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/FindBISON.cmake?root=CMake&amp;view=log</a><br>

<br>
The FindBISON module will suffer the same problem as posted above.  Someone<br>
could a patch into the bison people to allow the full path to m4 to be<br>
specified as a command line option?<br>
</blockquote>
<br></div>
AFAIK, this is possible with environment variables BISON_M4 or M4, see:<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 to a cmake script that sets this variable correctly.<font color="#888888"><br></font></blockquote></div><br>Excellent find!  I don&#39;t think add_custom_command supports adding environment variables though..?<br>
<br clear="all"><a href="http://public.kitware.com/Bug/view.php?id=9587">http://public.kitware.com/Bug/view.php?id=9587</a><br><br>-- <br>Philip Lowman<br>