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

CMake on aarch64 systems. #37

Open
gampUMKC opened this issue May 28, 2024 · 0 comments
Open

CMake on aarch64 systems. #37

gampUMKC opened this issue May 28, 2024 · 0 comments

Comments

@gampUMKC
Copy link

In CMakeLists.txt
the following code checks for 32 bit arm systems.

if (UNIX AND NOT APPLE)
if (CMAKE_SYSTEM_PROCESSOR MATCHES "arm|ARM")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfpu=neon")
else()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse4.1")
endif()
endif()

A fix would be to add another line such as

else if (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
endif()

It shouldn't require any additional flags since neon is mandatory for aarch64, and both the -mfpu=neon and -msse4.1 flags cause cmake to fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant