mirror of
https://github.com/GerbilSoft/rvthtool.git
synced 2025-06-18 11:35:33 -04:00
[cmake] FindNettle.cmake: Use CPU_* instead of CMAKE_SYSTEM_PROCESSOR.
The 32-bit AppVeyor build ended up using lib.amd64, which failed.
This commit is contained in:
parent
666f02a98f
commit
1245d127b7
@ -27,10 +27,13 @@ IF(NOT WIN32)
|
||||
ELSE(NOT WIN32)
|
||||
# Use the included Win32 build of Nettle.
|
||||
INCLUDE(DirInstallPaths)
|
||||
STRING(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" arch)
|
||||
IF(NOT arch MATCHES "^(i.|x)86$|^x86_64$|^amd64$")
|
||||
MESSAGE(FATAL_ERROR "Architecture ${arch} is not supported.")
|
||||
ENDIF(NOT arch MATCHES "^(i.|x)86$|^x86_64$|^amd64$")
|
||||
IF(CPU_i386)
|
||||
SET(arch "i386")
|
||||
ELSEIF(CPU_amd64)
|
||||
SET(arch "amd64")
|
||||
ELSE()
|
||||
MESSAGE(FATAL_ERROR "Unsupported CPU architecture, please fix!")
|
||||
ENDIF()
|
||||
|
||||
SET(NETTLE_WIN32_BASE_PATH "${CMAKE_SOURCE_DIR}/extlib/nettle.win32")
|
||||
SET(NETTLE_INCLUDE_DIRS "${NETTLE_WIN32_BASE_PATH}/include")
|
||||
|
Loading…
Reference in New Issue
Block a user