Zitat von Philip Lowman <phi...@yhbt.com>:
AFAIK, this is possible with environment variables BISON_M4 or M4, see:
http://osdir.com/ml/parsers.bison.bugs/2007-05/msg00012.html

If that works, maybe the standard bison call should be replaced with a call
to a cmake script that sets this variable correctly.


Excellent find!  I don't think add_custom_command supports adding
environment variables though..?

http://public.kitware.com/Bug/view.php?id=9587

That's why I suggested a cmake script that wraps it. This could actually be generalized by add_custom_command(): If environment variables are needed, automatically wrap the command with a cmake script.

Currently, you have to do that manually.

HS


_______________________________________________
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