From ed3e0b64b9c1e911647d8c3c8851abc2ab103da6 Mon Sep 17 00:00:00 2001 From: Hauke Rehfeld Date: Mon, 21 Jul 2014 14:53:46 +0200 Subject: [PATCH] Fixed CUDA language detection --- glm/detail/setup.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/glm/detail/setup.hpp b/glm/detail/setup.hpp index 6ad9bdc0..5df8e7ab 100644 --- a/glm/detail/setup.hpp +++ b/glm/detail/setup.hpp @@ -455,6 +455,10 @@ # define GLM_LANG (GLM_LANG_CXX98) # endif # endif +# elif(GLM_COMPILER & GLM_COMPILER_CUDA) +# if(defined(_MSC_EXTENSIONS)) +# define GLM_LANG (GLM_LANG_CXX0X | GLM_LANG_CXXMS_FLAG) +# endif # elif(__cplusplus >= 199711L) # define GLM_LANG GLM_LANG_CXX98 # else