mirror of
https://github.com/g-truc/glm.git
synced 2025-04-07 06:25:00 +00:00
Fixed CUDA_VERSION not being declared #182
This commit is contained in:
parent
eaf3cf3056
commit
0d8d5af8dd
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue