diff options
author | Pablo Marquez Tello <pablo.tello@arm.com> | 2024-05-28 14:59:30 +0100 |
---|---|---|
committer | Pablo Marquez Tello <pablo.tello@arm.com> | 2024-05-28 16:13:10 +0100 |
commit | eb2e8c6fbbbf770521e392ad1dfacc879d2b729a (patch) | |
tree | aa31041442d9e900bc950595a5b4d877de0b2137 /delegate/cmake/Modules/FindTfLiteSrc.cmake | |
parent | d7f483fcb1e5b07a7a59a3fad7be07c78a3abc37 (diff) | |
download | armnn-eb2e8c6fbbbf770521e392ad1dfacc879d2b729a.tar.gz |
Fix cmake cross-compilation for Android
* Cross-compiling from scratch on Linux for Android cmake won't find any headers or libs because
find_lib and find_path apprend the SYSROOT to the specified paths
* Resolves MLCE-1294
Change-Id: Id92297a96a536d343e4b951fd96f1f51ea97f4a3
Signed-off-by: Pablo Marquez Tello <pablo.tello@arm.com>
Diffstat (limited to 'delegate/cmake/Modules/FindTfLiteSrc.cmake')
-rw-r--r-- | delegate/cmake/Modules/FindTfLiteSrc.cmake | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/delegate/cmake/Modules/FindTfLiteSrc.cmake b/delegate/cmake/Modules/FindTfLiteSrc.cmake index 91833c18e6..1f07ed7b22 100644 --- a/delegate/cmake/Modules/FindTfLiteSrc.cmake +++ b/delegate/cmake/Modules/FindTfLiteSrc.cmake @@ -1,22 +1,22 @@ # -# Copyright © 2021 Arm Ltd and Contributors. All rights reserved. +# Copyright © 2021, 2024 Arm Ltd and Contributors. All rights reserved. # SPDX-License-Identifier: MIT # - include(FindPackageHandleStandardArgs) unset(TFLITE_SRC_FOUND) - find_path(TfLite_INCLUDE_DIR NAMES tensorflow/lite third_party - HINTS - ${TENSORFLOW_ROOT}) + PATHS + ${TENSORFLOW_ROOT} + NO_CMAKE_FIND_ROOT_PATH ) find_path(TfLite_Schema_INCLUDE_PATH schema_generated.h HINTS - ${TENSORFLOW_ROOT}/tensorflow/lite/schema) + ${TENSORFLOW_ROOT}/tensorflow/lite/schema + NO_CMAKE_FIND_ROOT_PATH ) ## Set TFLITE_FOUND find_package_handle_standard_args(TfLiteSrc DEFAULT_MSG TfLite_INCLUDE_DIR TfLite_Schema_INCLUDE_PATH) |