[CMake] makefile environment variables

Alexander Neundorf a.neundorf-work at gmx.net
Tue Oct 21 14:16:22 EDT 2008


On Tuesday 21 October 2008, Daniel Stonier wrote:
> 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

So you have some problem with cross compiling ? What exactly do you want to do 
that doesn't work ?

Alex


More information about the CMake mailing list