Browse Source

Automatically detect GLM

Christophe Riccio 14 years ago
parent
commit
5c5e343a6c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      glm/core/setup.hpp

+ 3 - 1
glm/core/setup.hpp

@@ -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