arm64.patch 736 B

1234567891011121314151617
  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. index 832d8672..9e6cfcb6 100644
  3. --- a/CMakeLists.txt
  4. +++ b/CMakeLists.txt
  5. @@ -447,7 +447,11 @@ IF(WIN32)
  6. # doesn't hurt for older compilers:
  7. # http://public.kitware.com/Bug/view.php?id=11240#c22768
  8. IF (CMAKE_CL_64)
  9. - SET_TARGET_PROPERTIES(freeglut_static PROPERTIES STATIC_LIBRARY_FLAGS "/machine:x64")
  10. + IF ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "ARM64")
  11. + SET_TARGET_PROPERTIES(freeglut_static PROPERTIES STATIC_LIBRARY_FLAGS "/machine:ARM64")
  12. + ELSE()
  13. + SET_TARGET_PROPERTIES(freeglut_static PROPERTIES STATIC_LIBRARY_FLAGS "/machine:x64")
  14. + ENDIF()
  15. ENDIF()
  16. ENDIF()
  17. ELSE()