Hi,<br><br>I am trying to access environment variables in CMakeLists.txt in UNIX environment. Here is example code<br><br>message(STATUS &quot;cuda path $ENV{CUDA_PATHS}&quot; )<br><br>and it is not printing anything for the variable. While when i try to echo it on terminal , i get proper value.<br>
<br><br>avanindra@avanindra-Triayaam:~/projects/ros_3d/build$ echo ${CUDA_PATH}<br>/usr/local/cuda     <br><br><br>Can some one please help me fix this.<br><br>Thanks<br>Avanindra Singh <br><br>