[CMake] Export environment variables in generated Makefile

Taylor Braun-Jones taylor at braun-jones.org
Fri May 15 11:48:32 EDT 2015


Is it possible for CMake to generate a Makefile that exports environment
variables whenever a target is executed? I want all invocations of gcc to
see the environment variables COVFILE=xxx and COVSRCDIR=xxx

Thanks,
Taylor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150515/2e378404/attachment.html>


More information about the CMake mailing list