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@avanindra-Triayaam:~/projects/ros_3d/build$ echo ${CUDA_PATH}
/usr/local/cuda


Can some one please help me fix this.

Thanks
Avanindra Singh
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to