[Cmake] Environment variables

Brad King brad . king at kitware . com
Wed, 24 Sep 2003 14:44:31 -0400 (EDT)


> My current goal is to be able to detect if environment variables are set
> and supply their values as defaults in the CMake GUI.

You can reference the special $ENV{} variable to get environment values
like any other CMake variable:

MESSAGE("$ENV{LD_LIBRARY_PATH}")

-Brad