Skip to content

Commit

Permalink
Fix glm with C++17 &constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
spnda committed Jan 28, 2024
1 parent 379853f commit ba7a7a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit ba7a7a1

Please sign in to comment.