[CMake] external tools in visual studio

Hendrik Sattler post at hendrik-sattler.de
Wed Sep 23 08:33:39 EDT 2009


Zitat von Philip Lowman <philip at 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




More information about the CMake mailing list