Add compile definitions
This commit is contained in:
8
3rdParty/glm/CMakeLists.txt
vendored
8
3rdParty/glm/CMakeLists.txt
vendored
@@ -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 ()
|
||||
Reference in New Issue
Block a user