Automatically detect GLM

master
Christophe Riccio ago%!(EXTRA string=14 years)
parent 073b1d763f
commit 5c5e343a6c
  1. 4
      glm/core/setup.hpp

@ -169,7 +169,7 @@
# define GLM_COMPILER GLM_COMPILER_CODEWARRIOR # define GLM_COMPILER GLM_COMPILER_CODEWARRIOR
// CUDA // CUDA
#elif defined(CUDA_VERSION) #elif defined(__CUDACC__)
# if CUDA_VERSION < 3000 # if CUDA_VERSION < 3000
# error "GLM requires CUDA 3.0 or higher" # error "GLM requires CUDA 3.0 or higher"
# elif CUDA_VERSION == 3000 # elif CUDA_VERSION == 3000
@ -180,6 +180,8 @@
# define GLM_COMPILER GLM_COMPILER_CUDA32 # define GLM_COMPILER GLM_COMPILER_CUDA32
# elif CUDA_VERSION == 4000 # elif CUDA_VERSION == 4000
# define GLM_COMPILER GLM_COMPILER_CUDA40 # define GLM_COMPILER GLM_COMPILER_CUDA40
# else
# define GLM_COMPILER GLM_COMPILER_CUDA
# endif # endif
#else #else

Loading…
Cancel
Save