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
Some clean ups for the 3P C++ API's Gradle / CMake integration.
In particular:
- Use `list(PREPEND ...)` rather than `set(...)` to prepend to `CMAKE_MODULE_PATH`.
- Clarify the distinction between `tflite_cc_DIR` and `tflite_cc_INCLUDE_DIR`,
and use the former rather than the latter for the call to `add_subdirectory`.
- Define `tflite_cc_api_DIR` in the same place where `tflite_cc_INCLUDE_DIR`
is defined, i.e. in `Findtflite_cc_api.cmake`, rather than in a different file.
- In `Findtflite_cc_api.cmake`, verify that the appropriate files exist in
the specified directory, and report error(s) if they don't.
(If CMake is invoked via Gradle, then the Gradle file
should already ensure that those files exist there, by unpacking the
contents of the AAR file and copying the `cc_sdk` directory there;
but having explicit checks here means we'll fail
earlier, and hopefully with a better error message, if CMake is invoked in some
other way or if future changes break things.)
PiperOrigin-RevId: 706640601
0 commit comments