Unbound is now a submodule. Adapt depends for this.

Fix builds for native linux and windows

The architecture flag was set incorrectly.
It needs to be set only when compiling arm6.
This commit is contained in:
TheCharlatan 2018-03-20 03:56:11 +01:00 committed by wowario
parent d55544036b
commit dfe5f94145
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111
2 changed files with 1 additions and 3 deletions

View File

@ -481,7 +481,7 @@ if(MSVC)
include_directories(SYSTEM src/platform/msc)
else()
include(TestCXXAcceptsFlag)
if (NOT DEPENDS)
if (NOT ARM6)
set(ARCH native CACHE STRING "CPU to build for: -march value or 'default' to not pass -march at all")
endif()
message(STATUS "Building on ${CMAKE_SYSTEM_PROCESSOR} for ${ARCH}")

View File

@ -65,8 +65,6 @@ else()
SET(CMAKE_CXX_COMPILER @CXX@)
endif()
set(ARCH @arch@)
if(ARCH STREQUAL "arm")
set(ARCH "armv6zk")
set(ARMID "armv6zk")