[CMake] $ENV{env_var} is not picking up user defined environment variables
Rolf Eike Beer
eike at sf-mail.de
Wed Dec 28 19:29:07 EST 2011
Avanindra Singh wrote:
> Hi,
>
> I am trying to access environment variables in CMakeLists.txt in UNIX
> environment. Here is example code
>
> message(STATUS "cuda path $ENV{CUDA_PATHS}" )
>
> and it is not printing anything for the variable. While when i try to echo
> it on terminal , i get proper value.
>
>
> avanindra at avanindra-Triayaam:~/projects/ros_3d/build$ echo ${CUDA_PATH}
> /usr/local/cuda
export CUDA_PATH ?
Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111229/7c0372c2/attachment.pgp>
More information about the CMake
mailing list