[CMake] how to use DEFINED with ENV
Brad King
brad.king at kitware.com
Fri Feb 10 14:45:37 EST 2006
Xavier Delannoy wrote:
> my CMakeLists.txt need an environement variable.
>
> I try this, with no success.
> /tmp> cat CMakeLists.txt
> IF(DEFINED ENV{TEST})
> MESSAGE("test is defined")
> ELSE(DEFINED ENV{TEST})
> MESSAGE("test is not defined")
> ENDIF(DEFINED ENV{TEST})
I've implemented support for a test of this form. It will be included
in the next release.
-Brad
More information about the CMake
mailing list