meta-digi/meta-digi-dey/dynamic-layers/x-linux-ai/recipes-frameworks/onnxruntime/files/0002-onnxruntime-add-SONAME...

26 lines
867 B
Diff

From cb9bd5d833845a5e12c38b5b457fd232498efeb7 Mon Sep 17 00:00:00 2001
From: Othmane AHL ZOUAOUI <othmane.ahlzouaoui@st.com>
Date: Tue, 9 May 2023 13:33:14 +0200
Subject: [PATCH 2/5] onnxruntime: add SONAME with MAJOR version
Signed-off-by: Othmane AHL ZOUAOUI <othmane.ahlzouaoui@st.com>
%% original patch: 0002-onnxruntime-add-SONAME-with-MAJOR-version.patch
---
cmake/CMakeLists.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
index a5d28fb516..08a4c6af52 100644
--- a/cmake/CMakeLists.txt
+++ b/cmake/CMakeLists.txt
@@ -1617,3 +1617,6 @@ if (onnxruntime_ENABLE_EXTERNAL_CUSTOM_OP_SCHEMAS)
COMMENT "Installing protobuf"
)
endif()
+
+message("ONNXRUNTIME_VERSION_MAJOR=${ONNXRUNTIME_VERSION_MAJOR}")
+set_target_properties(onnxruntime PROPERTIES SOVERSION "${ONNXRUNTIME_VERSION_MAJOR}")
--
2.25.1