Add compile definitions

This commit is contained in:
2024-05-22 12:20:02 +02:00
parent 4f539e786c
commit cdab347bda

View File

@@ -13,3 +13,11 @@ FetchContent_Declare(
)
set(GLM_TEST_ENABLE OFF CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(glm)
add_compile_definitions(GLM_FORCE_SILENT_WARNINGS)
if (NOT ANDROID AND NOT IOS)
# TODO check target architecture first
add_compile_definitions(GLM_FORCE_AVX2)
else ()
add_compile_definitions(GLM_FORCE_INTRINSICS)
endif ()