2
0
Эх сурвалжийг харах

Fixed CUDA_VERSION not being declared #182

Christophe Riccio 11 жил өмнө
parent
commit
0d8d5af8dd
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      glm/detail/setup.hpp

+ 3 - 0
glm/detail/setup.hpp

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