Skip to content
Erik Rainey edited this page Feb 27, 2015 · 1 revision

You can also provide an environment.mak in your project folder which can be used to set global variable during the build.

CUDA_ROOT:=/usr/local/cuda

This is an example of a variable you could set in the environment. If you wanted to make it OS dependant, you can!

ifeq ($(TARGET_OS),LINUX)
CUDA_ROOT:=/usr/local/cuda
else ifeq ($(TARGET_OS),Windows_NT)
CUDA_ROOT:=C:/sdks/cuda
endif
Clone this wiki locally