From 0d8d5af8dda2d02424d15df66638c4f8b8b8500d Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Sat, 15 Mar 2014 21:59:22 +0100 Subject: [PATCH] Fixed CUDA_VERSION not being declared #182 --- glm/detail/setup.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/glm/detail/setup.hpp b/glm/detail/setup.hpp index 958a323c..06a9408a 100644 --- a/glm/detail/setup.hpp +++ b/glm/detail/setup.hpp @@ -211,6 +211,9 @@ // CUDA #elif defined(__CUDACC__) +# if !defined(CUDA_VERSION) && !defined(GLM_FORCE_CUDA) +# include // 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