From 23a6d00339f2310dd2973e47d95b9c0d7b8d9bde Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Tue, 17 Jan 2023 11:24:01 +0000 Subject: IVGCVSW-7438 Not finding JNI libraries while building Arm NN * This issue was caused by https://review.mlplatform.org/c/ml/armnn/+/8771 * Not able to find the lib suffix due to condition set in GlobalConfig Signed-off-by: Nikhil Raj Change-Id: I176279757dce7ba8262342d69a6f550e383cf138 --- cmake/GlobalConfig.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/GlobalConfig.cmake b/cmake/GlobalConfig.cmake index 6f3fee47f8..e9eb0a9757 100644 --- a/cmake/GlobalConfig.cmake +++ b/cmake/GlobalConfig.cmake @@ -177,7 +177,9 @@ if (NOT BUILD_PIPE_ONLY) include_directories(SYSTEM "${GHC_INCLUDE}") endif() -if(NOT BUILD_SHARED_LIBS) +# JNI_BUILD has DBUILD_SHARED_LIBS set to 0 and not finding libs while building +# hence added NOT BUILD_ARMNN_TFLITE_DELEGATE condition +if(NOT BUILD_SHARED_LIBS AND NOT BUILD_ARMNN_TFLITE_DELEGATE) set(CMAKE_FIND_LIBRARY_SUFFIXES .a .lib) endif() -- cgit v1.2.1