From da3eb5e72f429a34c372eeeaa09957e2641dd7f5 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Wed, 6 Sep 2023 14:58:15 +0100 Subject: [PATCH] Pass through unknown architectures Conan supports non-standard architectures through the installation of custom settings.yml files. However, conan-cmake currently expects to be able to translate the architecture from the CMake naming scheme to the Conan naming scheme, and fails with an error if the architecture is unknown. This patch resolves the issue by making the script simply pass through the CMake architecture to Conan unchanged in these cases. --- conan_provider.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conan_provider.cmake b/conan_provider.cmake index 1e50e69e..551120e6 100644 --- a/conan_provider.cmake +++ b/conan_provider.cmake @@ -87,6 +87,8 @@ function(detect_arch ARCH) set(_ARCH x86) elseif(host_arch MATCHES "AMD64|amd64|x86_64|x64") set(_ARCH x86_64) + else() + set(_ARCH "${host_arch}") endif() message(STATUS "CMake-Conan: cmake_system_processor=${_ARCH}") set(${ARCH} ${_ARCH} PARENT_SCOPE)