From ec1032107c993b08e69ede358fe64eabe340d3ab Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Sat, 26 Sep 2020 13:40:20 +0200 Subject: [PATCH] Change the VST3 architecture for ARM to match RPM specification The suffix `hl` indicates a little-endian processor with FPU --- cmake/VSTConfig.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/VSTConfig.cmake b/cmake/VSTConfig.cmake index dd2ae1cb6..2d44ad957 100644 --- a/cmake/VSTConfig.cmake +++ b/cmake/VSTConfig.cmake @@ -30,10 +30,10 @@ if(NOT VST3_PACKAGE_ARCHITECTURE) else() set(VST3_PACKAGE_ARCHITECTURE "i386") endif() - elseif(VST3_SYSTEM_PROCESSOR MATCHES "^(armv7l)$") - set(VST3_PACKAGE_ARCHITECTURE "armv7l") + elseif(VST3_SYSTEM_PROCESSOR MATCHES "^(armv[0-9]+)") + string(REGEX REPLACE "^(armv[0-9]+).*$" "\\1hl" VST3_PACKAGE_ARCHITECTURE "${VST3_SYSTEM_PROCESSOR}") elseif(VST3_SYSTEM_PROCESSOR MATCHES "^(aarch64)$") - set(VST3_PACKAGE_ARCHITECTURE "aarch64") + set(VST3_PACKAGE_ARCHITECTURE "aarch64") else() message(FATAL_ERROR "We don't know this architecture for VST3: ${VST3_SYSTEM_PROCESSOR}.") endif()