[CMake] test for environment variable?

William A. Hoffman billlist at nycap.rr.com
Wed Feb 23 11:58:22 EST 2005


You can find the value of an environment variable with $ENV{VAR}.
I don't think there is a way to tell the difference between being set to
nothing and not being set at all.

-Bill


At 09:40 AM 2/23/2005, David Somers wrote:
>Greetings,
>
>Is there a simple way to get CMake to test if an environment variable has
>been defined?
>
>Cheers,
>
>David Somers
>
>_______________________________________________
>CMake mailing list
>CMake at cmake.org
>http://www.cmake.org/mailman/listinfo/cmake 



More information about the CMake mailing list