mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 12:41:54 +00:00
include <cuda.h> to make sure CUDA_VERSION is defined
This commit is contained in:
parent
2536c4c6b6
commit
9fddf6225b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user