[cmake] INCLUDE(CPUInstructionSetFlags) where necessary.

Needed as part of the previous rom-properties backport.
This commit is contained in:
David Korth 2022-07-12 18:10:55 -04:00
parent 67de549aff
commit 425db80b54
3 changed files with 5 additions and 5 deletions

View File

@ -26,11 +26,9 @@ IF(NOT WIN32)
endif()
ELSE(NOT WIN32)
# Use the included Win32 build of Nettle.
INCLUDE(DirInstallPaths)
IF(CPU_i386)
SET(arch "i386")
ELSEIF(CPU_amd64)
SET(arch "amd64")
INCLUDE(CPUInstructionSetFlags)
IF(CPU_i386 OR CPU_amd64)
# Supported CPU
ELSE()
MESSAGE(FATAL_ERROR "Unsupported CPU architecture, please fix!")
ENDIF()

View File

@ -11,6 +11,7 @@ SET(RP_C_FLAGS_WIN32 "${RP_C_FLAGS_WIN32} -DMINGW_HAS_SECURE_API")
# NOTE: MS_ENH_RSA_AES_PROV is only available starting with
# Windows XP. Because we're actually using some XP-specific
# functionality now, the minimum version is now Windows XP.
INCLUDE(CPUInstructionSetFlags)
IF(CPU_amd64)
# amd64 (64-bit), Unicode Windows only.
# (There is no amd64 ANSI Windows.)

View File

@ -26,6 +26,7 @@ ENDIF()
# NOTE: MS_ENH_RSA_AES_PROV is only available starting with
# Windows XP. Because we're actually using some XP-specific
# functionality now, the minimum version is now Windows XP.
INCLUDE(CPUInstructionSetFlags)
IF(CPU_amd64)
# amd64 (64-bit), Unicode Windows only. (MSVC)
# (There is no amd64 ANSI Windows.)