mirror of
https://github.com/g-truc/glm.git
synced 2025-04-07 22:40:17 +00:00
Automatically detect GLM
This commit is contained in:
parent
073b1d763f
commit
5c5e343a6c
1 changed files with 3 additions and 1 deletions
|
@ -169,7 +169,7 @@
|
|||
# define GLM_COMPILER GLM_COMPILER_CODEWARRIOR
|
||||
|
||||
// CUDA
|
||||
#elif defined(CUDA_VERSION)
|
||||
#elif defined(__CUDACC__)
|
||||
# if CUDA_VERSION < 3000
|
||||
# error "GLM requires CUDA 3.0 or higher"
|
||||
# elif CUDA_VERSION == 3000
|
||||
|
@ -180,6 +180,8 @@
|
|||
# define GLM_COMPILER GLM_COMPILER_CUDA32
|
||||
# elif CUDA_VERSION == 4000
|
||||
# define GLM_COMPILER GLM_COMPILER_CUDA40
|
||||
# else
|
||||
# define GLM_COMPILER GLM_COMPILER_CUDA
|
||||
# endif
|
||||
|
||||
#else
|
||||
|
|
Loading…
Add table
Reference in a new issue