glm will report a bug if setting the language as c++11. Fix it by switching to c++14.
pull/1176/head
Zheng Zeng 3 years ago committed by GitHub
parent ae92bc06b8
commit 4d4fa2632e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/g/glm/xmake.lua

@ -18,5 +18,5 @@ package("glm")
void test() { void test() {
glm::mat4 proj = glm::perspective(glm::radians(45.f), 1.33f, 0.1f, 10.f); 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) end)

Loading…
Cancel
Save