Make OQS_USE_CPU_EXTENSIONS imply OQS_PORTABLE_BUILD=OFF; alternative to #939 (#942)

This commit is contained in:
John Schanck 2021-03-14 15:32:52 -04:00 committed by GitHub
parent e116748c50
commit 4b1a9e23ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,6 +40,11 @@ else()
message(FATAL_ERROR "Unknown or unsupported processor: " ${CMAKE_SYSTEM_PROCESSOR})
endif()
if(NOT OQS_USE_CPU_EXTENSIONS AND OQS_PORTABLE_BUILD)
message(WARNING "OQS_PORTABLE_BUILD requires OQS_USE_CPU_EXTENSIONS")
set(OQS_PORTABLE_BUILD OFF)
endif()
if(OQS_PORTABLE_BUILD AND ARCH_X86_64)
set(OQS_PORTABLE_X86_64_BUILD ON)
endif()