Generic and Default include paths in macOS and Windows


I’m writing a Makefile for multi-platform project involving CUDA. Could anyone help me with the default include paths that I could use for macOS and Windows, which aren’t tied to a SDK version ? e.g. /usr/local/cuda is the default installation path for Linux and isn’t tied to any SDK version, with the include sub-directory containing header files.


Not familiar with macOS, but Windows paths can be fairly complicated… e.g.:

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0

It might be easier to define an environment variable that points to a specific directory perhaps after checking that said directory exists, but I would argue that it’s up to the user to configure their build environment accordingly. Maybe someone else has a better idea.