[CMake] makefile environment variables
Daniel Stonier
d.stonier at gmail.com
Tue Oct 21 01:58:27 EDT 2008
Is there any means of getting cmake to insert an environment variable
into the makefiles it generates?
I know you can do the following:
SET(ENV{PATH} /opt/eldk/usr/bin/ccache:/opt/eldk/usr/bin:$ENV{PATH})
SET(ENV{CROSS_COMPILE} ppc_4xxFP-)
and this is sometimes useful for getting cmake to do things without
having to externally configure your environment, but it doesn't carry
on to the makefile. So you still need to rely on an externally
configured variable. What would be nice is if cmake additionally
inserted those variables into the makefiles so that when you came to
build, your environment was prepared.
More information about the CMake
mailing list