[cmake-developers] Setting environment variables for builds
Johan Björk
phb at spotify.com
Mon Aug 8 04:24:35 EDT 2011
Hey guys,
This has been discussed a billion times, so I'll keep it short.
Problem: Some parts of the build requires a environment variable to be set
Solution: Several workarounds, use custom commands, wrapper scripts etc.
While the solution works fine for basic stuff, I have several toolchains etc
that requires environment variables to be installed for them to work.
Since I'm using cmake --build for all my building, I am thinking about
creating a new command in cmake that will store certain environment
variables in the cache, and if building using cmake --build, they will be
set before the build starts.
Any comments before I go and build this?
Cheers
-Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20110808/05f0716e/attachment.html>
More information about the cmake-developers
mailing list