Skip to content

Commit 15c1642

Browse files
larryliu0820facebook-github-bot
authored andcommitted
Let find_package(executorch) find the correct include directory (#6102)
Summary: There's a typo in `executorch-wheel-config.cmake` that points to the wrong `include` path: ``` <site-packages>/executorch/share/cmake/include ``` Where it actually should be ``` <site-packages>/executorch/include ``` Fixing this issue. Verified it on [build_torchao_ops.sh](https://github.com/pytorch/ao/blob/main/torchao/experimental/build_torchao_ops.sh) Pull Request resolved: #6102 Reviewed By: lucylq Differential Revision: D64189337 Pulled By: larryliu0820 fbshipit-source-id: 13033587f5499537623995b8f9457fb47d780340
1 parent df5b2ab commit 15c1642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/executorch-wheel-config.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if(_portable_lib_LIBRARY)
3131
message(STATUS "ExecuTorch portable library is found at ${_portable_lib_LIBRARY}")
3232
list(APPEND EXECUTORCH_LIBRARIES _portable_lib)
3333
add_library(_portable_lib STATIC IMPORTED)
34-
set(EXECUTORCH_INCLUDE_DIRS ${CMAKE_CURRENT_LIST_DIR}/include)
34+
set(EXECUTORCH_INCLUDE_DIRS ${CMAKE_CURRENT_LIST_DIR}/../../include)
3535
set_target_properties(_portable_lib PROPERTIES
3636
IMPORTED_LOCATION "${_portable_lib_LIBRARY}"
3737
INTERFACE_INCLUDE_DIRECTORIES "${EXECUTORCH_INCLUDE_DIRS}"

0 commit comments

Comments
 (0)