include <cuda.h> to make sure CUDA_VERSION is defined

This commit is contained in:
dachziegel 2014-03-15 11:29:01 +01:00
parent 2536c4c6b6
commit 9fddf6225b

View File

@ -211,6 +211,9 @@
// CUDA
#elif defined(__CUDACC__)
# if !defined(CUDA_VERSION) && !defined(GLM_FORCE_CUDA)
# include <cuda.h> // make sure version is defined since nvcc does not define it itself!
# endif
# if CUDA_VERSION < 3000
# error "GLM requires CUDA 3.0 or higher"
# else