Skip to content

Commit 0394205

Browse files
committed
Add find_package hint for test CMake
Could not find ET installation when cross-compiling.
1 parent d77ac15 commit 0394205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ set(EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/..)
2626
include(${EXECUTORCH_ROOT}/tools/cmake/Utils.cmake)
2727

2828
# Find prebuilt executorch library
29-
find_package(executorch CONFIG REQUIRED)
29+
find_package(executorch CONFIG REQUIRED HINTS ${CMAKE_INSTALL_PREFIX})
3030

3131
# Let files say "include <executorch/path/to/header.h>".
3232
set(_common_include_directories ${EXECUTORCH_ROOT}/..)

0 commit comments

Comments
 (0)