From 4d4fa2632eaf73949004b93b888e61fac87388e8 Mon Sep 17 00:00:00 2001 From: Zheng Zeng Date: Fri, 22 Apr 2022 06:59:18 -0700 Subject: [PATCH] Fixes glm (#1173) glm will report a bug if setting the language as c++11. Fix it by switching to c++14. --- packages/g/glm/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/g/glm/xmake.lua b/packages/g/glm/xmake.lua index 6b722b9a2..e4295c9fc 100644 --- a/packages/g/glm/xmake.lua +++ b/packages/g/glm/xmake.lua @@ -18,5 +18,5 @@ package("glm") void test() { glm::mat4 proj = glm::perspective(glm::radians(45.f), 1.33f, 0.1f, 10.f); } - ]]}, {configs = {languages = "c++11"}, includes = {"glm/mat4x4.hpp", "glm/ext/matrix_clip_space.hpp"}})) + ]]}, {configs = {languages = "c++14"}, includes = {"glm/mat4x4.hpp", "glm/ext/matrix_clip_space.hpp"}})) end)