Skip to content

Commit

Permalink
CMake: aarch64 IMGUI_DISABLE_SSE fix
Browse files Browse the repository at this point in the history
Disable SSE intrinsics for arm64/aarch64 arch
  • Loading branch information
aekoroglu committed Mar 21, 2023
1 parent 02192dc commit 926d5ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/common/imgui/CMakeLists.txt
Expand Up @@ -15,6 +15,6 @@ TARGET_LINK_LIBRARIES(imgui glfw)
SET_PROPERTY(TARGET imgui PROPERTY FOLDER tutorials/common)
SET_PROPERTY(TARGET imgui APPEND PROPERTY COMPILE_FLAGS " ${FLAGS_LOWEST}")

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm64|aarch64")
TARGET_COMPILE_DEFINITIONS(imgui PUBLIC IMGUI_DISABLE_SSE)
endif()

0 comments on commit 926d5ec

Please sign in to comment.