Commit 8384d26
committed
Remove unnecessary Torch dependency from ExecuTorch ops build
The ExecuTorch ops target defines TORCHAO_SHARED_KERNELS_BUILD_EXECUTORCH=1,
which means shared kernel headers use ExecuTorch includes, not Torch includes.
The find_package(Torch) and TORCH_INCLUDE_DIRS were therefore unnecessary and
caused CMake configure failures in standalone ExecuTorch builds where PyTorch
is not discoverable via find_package.1 parent afb2844 commit 8384d26
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
201 | 200 | | |
202 | 201 | | |
203 | 202 | | |
| |||
230 | 229 | | |
231 | 230 | | |
232 | 231 | | |
233 | | - | |
234 | 232 | | |
0 commit comments