You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use CMAKE_CURRENT_SOURCE_DIR for host flatcc paths (#2845)
Summary:
The host flatcc paths were using CMAKE_SOURCE_DIR, which points to the directory of the top-most CMakeLists.txt file. This works when executorch is the top-level project, but not if another project adds executorch as a subdirectory.
Instead, use paths relative to CMAKE_CURRENT_SOURCE_DIR, which points to the directory of the CMakeLists.txt file that is currently being executed.
Pull Request resolved: #2845
Test Plan: With this changes we were able to successfully build the nanogpt_runner with etdump in dbort/et-tutorials#3
Reviewed By: tarun292
Differential Revision: D55720241
Pulled By: dbort
fbshipit-source-id: c6c890c51853f518a19265c09e5e0eee25784dad
0 commit comments