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

CMakeList.txt: only fall back native flags to -march=nehalem on x86_64 #156

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ elseif (APPLE AND ((CMAKE_OSX_ARCHITECTURES MATCHES "arm64") OR
(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "arm64")))
# Apple M1 compatibility
set(NANOGUI_NATIVE_FLAGS_DEFAULT "-mcpu=apple-a12")
else()
elseif (CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "x86_64")
set(NANOGUI_NATIVE_FLAGS_DEFAULT "-march=nehalem")
else()
set(NANOGUI_NATIVE_FLAGS_DEFAULT "")
endif()

option(NANOGUI_BUILD_EXAMPLES "Build NanoGUI example application?" ON)
Expand Down