From ba7a7a17c24f108ba4af4211f5e82dd29c9cf9f3 Mon Sep 17 00:00:00 2001 From: sean Date: Sun, 28 Jan 2024 22:08:54 +0100 Subject: [PATCH] Fix glm with C++17 &constexpr --- deps/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt index d94033ddc..424c6105b 100644 --- a/deps/CMakeLists.txt +++ b/deps/CMakeLists.txt @@ -20,6 +20,11 @@ endif() # glm if(EXISTS "${FASTGLTF_DEPS_DIR}/glm") message(STATUS "fastgltf: Found glm") + + # glm breaks because it apparently can't properly detect constexpr/C++ version and + # sets -Weverything which enables C++98 compatibility on Clang?? + option(GLM_ENABLE_CXX_17 "" ON) + add_subdirectory("${FASTGLTF_DEPS_DIR}/glm") add_library(glm::glm ALIAS glm)