From: Inki Dae Date: Wed, 18 Dec 2024 07:46:28 +0000 (+0900) Subject: external/protobuf: consider armv7l and aarch64 architecture X-Git-Tag: accepted/tizen/unified/20250310.024602~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f2b38d7025c2a81db453c0a5e627d8ca9711afd;p=platform%2Fupstream%2Fhailort.git external/protobuf: consider armv7l and aarch64 architecture Change-Id: Ie800f94a7509f0973c12f67e3b1b6b4b03e75adc Signed-off-by: Inki Dae --- 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)