From cdab347bda4ea6305116ed4316b10c74ff670bf9 Mon Sep 17 00:00:00 2001 From: GeorgH93 Date: Wed, 22 May 2024 12:20:02 +0200 Subject: [PATCH] Add compile definitions --- 3rdParty/glm/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/3rdParty/glm/CMakeLists.txt b/3rdParty/glm/CMakeLists.txt index 42bbfa0..6886ec0 100644 --- a/3rdParty/glm/CMakeLists.txt +++ b/3rdParty/glm/CMakeLists.txt @@ -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 () \ No newline at end of file