Skip to content

Commit 95db331

Browse files
authored
[pybind] Let find_package(executorch) find the correct include directory
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)
1 parent df5b2ab commit 95db331

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)