No CMAKE_CUDA_COMPILER when building Realsense Library

Hi all,

I am using a Jetson TX2 on the Developer board and attempting to use the Realsense D435 Depth camera on this device. I have been using the Jetson hacks repository to build the librealsense. When I run the

it gets to line 116 in the script which is

${HOME}/CMake/bin/cmake ../ -DBUILD_EXAMPLES=true -DBUILD_WITH_CUDA=true

I have tried searching around but am unfamiliar with cuda and the cuda compiler. Any help would be much appreciated!

images of errors:


This is a known issue of jetsonhacks:

Please execute the script with sudo to solve this ownership issue.