From 9fddf6225b3551de4ce7ece9cdabaaaeedac9aaf Mon Sep 17 00:00:00 2001 From: dachziegel Date: Sat, 15 Mar 2014 11:29:01 +0100 Subject: [PATCH] include to make sure CUDA_VERSION is defined --- glm/detail/setup.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/glm/detail/setup.hpp b/glm/detail/setup.hpp index a6f22ec8..b360816e 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