From 5f2b38d7025c2a81db453c0a5e627d8ca9711afd Mon Sep 17 00:00:00 2001 From: Inki Dae Date: Wed, 18 Dec 2024 16:46:28 +0900 Subject: [PATCH] external/protobuf: consider armv7l and aarch64 architecture Change-Id: Ie800f94a7509f0973c12f67e3b1b6b4b03e75adc Signed-off-by: Inki Dae --- hailort/cmake/external/protobuf.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hailort/cmake/external/protobuf.cmake b/hailort/cmake/external/protobuf.cmake index 1503920..dbae9d2 100644 --- a/hailort/cmake/external/protobuf.cmake +++ b/hailort/cmake/external/protobuf.cmake @@ -41,7 +41,11 @@ if(NOT protobuf_POPULATED) if(WIN32) set(PROTOBUF_CONFIG_DIR ${PROTOBUF_INSTALL_DIR}/cmake) else() - set(PROTOBUF_CONFIG_DIR ${PROTOBUF_INSTALL_DIR}/lib/cmake/protobuf) + set(LIB_DIR "lib") + if(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64") + set(LIB_DIR "lib64") + endif() + set(PROTOBUF_CONFIG_DIR ${PROTOBUF_INSTALL_DIR}/${LIB_DIR}/cmake/protobuf) endif() # Include host protobuf for protoc (https://stackoverflow.com/questions/53651181/cmake-find-protobuf-package-in-custom-directory) -- 2.34.1