PR #124407
tensorflow/tensorflow · Build · Merged · 1 file changed
Fixed a subtle documentation bug in TensorFlow Lite's OverridableFetchContent.cmake where the example override variable lacked the required module prefix, preventing downstream CMake builds from overriding dependency sources locally.
Checkout Pull Request
Inspect the full commit history and diff locally from upstream tensorflow/tensorflow.
$gh pr checkout 124407 --repo tensorflow/tensorflowFixed a subtle documentation bug in TensorFlow Lite's OverridableFetchContent.cmake where the example override variable lacked the required module prefix, preventing downstream CMake builds from overriding dependency sources locally.
File-by-File Modification Breakdown (1)
- +4 / -4
tensorflow/lite/tools/cmake/modules/OverridableFetchContent.cmake
CMake module configuration and dependency override rules
Changed Files (1)
1. Introduction & Motivation
Researchers and embedded systems engineers cross-compiling TensorFlow Lite frequently rely on OverridableFetchContent.cmake to substitute local or air-gapped dependency checkouts during CMake configuration [1]. The inline usage example in this module omitted the required prefix on the override variable name, causing builds following the documented snippet to silently ignore local overrides and attempt network fetches.
2. Dependency Resolution Rule & Example
CMake's override lookup resolves cache keys under a deterministic namespace prefix derived from the module name :
3. References
- Kitware CMake Documentation,
FetchContentDependency Override & Cache Variable Semantics.