[CMake] $ENV{env_var} is not picking up user defined environment variables

Rolf Eike Beer eike at sf-mail.de
Wed Dec 28 20:01:51 EST 2011


Am Donnerstag 29 Dezember 2011, 06:23:25 schrieben Sie:
> Hi Elike,
> 
> Thanks for the reply.
> 
> I think cuda path is already exported. I have entry for export in ~/.bashrc
> file. Below are the few lines from bashrc file.
> 
> #CUDA CUSTOM PATH DEFINITION
> 
> > export AV_PROJECT_PATH="/home/avanindra/projects"
> > export CUDA_PATH="/usr/local/cuda"
> > export CUDA_BIN_PATH=/usr/local/cuda/bin
> > export CUDA_LIB_PATH=/usr/local/cuda/lib
> > export CUDA_INC_PATH=/usr/local/cuda/include
> > export NVSDKCOMPUTE_ROOT=/home/avanindra/NVIDIA_GPU_Computing_SDK
> > export
> > LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CUDA_LIB_PATH:$NVSDKCOMPUTE_ROOT/lib
> > export ROS_MASTER_URI=http://localhost:11311
> > source /opt/ros/electric/setup.bash
> 
> Also command line echo ${CUDA_PATH} gives the correct path , this means
> CUDA_PATH already exist as environment variable.

Then don't write MESSAGE(STATUS $ENV{CUDA_PATHS}), but $ENV{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/8b435bcb/attachment.pgp>


More information about the CMake mailing list