Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS CMake Rejects arm64 arch #1749

Closed
jkeller51 opened this issue Feb 4, 2021 · 1 comment
Closed

MacOS CMake Rejects arm64 arch #1749

jkeller51 opened this issue Feb 4, 2021 · 1 comment

Comments

@jkeller51
Copy link
Contributor

Subject of the issue

SFML/CMakeLists.txt contains this fatal error in the MacOS section:

    # only the default architecture (i.e. 64-bit) is supported
    if(NOT CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64")
        message(FATAL_ERROR "Only 64-bit architecture is supported")
    endif()

However, when bypass this check I am able to build and run native arm64 just fine on a MacBook Pro with an M1 processor.

Your environment

macOS Big Sur 11.2
Xcode 12.4
CMAKE_OSX_ARCHITECTURES = "x86_64;arm64"

Suggested Solution

Split the CMAKE_OSX_ARCHITECTURES by semicolon and make sure each item is either x86_64 or arm64. I'm not a CMake wizard but I could maybe do this within a few days.

@eXpl0it3r eXpl0it3r added this to Discussion in SFML 2.6.0 via automation Mar 20, 2021
@eXpl0it3r eXpl0it3r added this to the 2.6 milestone Mar 20, 2021
@eXpl0it3r eXpl0it3r moved this from Discussion to Ready in SFML 2.6.0 Mar 20, 2021
@eXpl0it3r
Copy link
Member

Fixed with #1750

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
SFML 2.6.0
  
Done
Development

No branches or pull requests

2 participants