Fixup 32bit arm build

Set the architecture in the toolchain file correctly
This commit is contained in:
TheCharlatan 2018-09-18 02:52:57 +02:00 committed by wowario
parent df364242a9
commit 927f044e40
No known key found for this signature in database
GPG key ID: 24DCBE762DE9C111
2 changed files with 6 additions and 3 deletions

View file

@ -489,7 +489,9 @@ if(MSVC)
else()
include(TestCXXAcceptsFlag)
if (NOT ARM6)
set(ARCH native CACHE STRING "CPU to build for: -march value or 'default' to not pass -march at all")
if(NOT DEPENDS OR DEPENDS AND NOT ARM)
set(ARCH native CACHE STRING "CPU to build for: -march value or 'default' to not pass -march at all")
endif()
endif()
message(STATUS "Building on ${CMAKE_SYSTEM_PROCESSOR} for ${ARCH}")
if(ARCH STREQUAL "default")