diff options
author | Nikhil Raj <nikhil.raj@arm.com> | 2023-01-17 11:24:01 +0000 |
---|---|---|
committer | Nikhil Raj <nikhil.raj@arm.com> | 2023-01-18 09:56:42 +0000 |
commit | 23a6d00339f2310dd2973e47d95b9c0d7b8d9bde (patch) | |
tree | 4249ba2cfdd21f24d0c23922d98d6ca605201800 /cmake/GlobalConfig.cmake | |
parent | 4e54e9c12e352883c81475adff677d54244757ee (diff) | |
download | armnn-23a6d00339f2310dd2973e47d95b9c0d7b8d9bde.tar.gz |
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 <nikhil.raj@arm.com>
Change-Id: I176279757dce7ba8262342d69a6f550e383cf138
Diffstat (limited to 'cmake/GlobalConfig.cmake')
-rw-r--r-- | cmake/GlobalConfig.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
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() |