1
0
Fork 0
forked from lthn/blockchain

Improve processor detection logic in GetConan.cmake by using cmake_host_system_information

This commit is contained in:
snider 2025-10-06 18:22:26 +01:00
parent eacc0a9f1c
commit 958580d91d

View file

@ -34,7 +34,7 @@ if(NOT EXISTS "${CONAN_EXECUTABLE}")
if(CMAKE_HOST_SYSTEM_PROCESSOR)
set(HOST_PROCESSOR ${CMAKE_HOST_SYSTEM_PROCESSOR})
else()
set(HOST_PROCESSOR ${CMAKE_SYSTEM_PROCESSOR})
cmake_host_system_information(RESULT HOST_PROCESSOR QUERY OS_PLATFORM)
endif()
# Detect the operating system and architecture