← All tasks
cppalibaba/MNN #4105Not a task: already works

Cache `MNN_DEPS` and `MNN_INCLUDES` CMake variables for external usage

envgap__alibaba__MNN-4105

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
c0d15bf542fdd0830e706cc48fb3a838f1339053
Manifest
CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

alibaba/MNN #4105 · read the original issue
Currently, `MNN_DEPS` setted in https://github.com/alibaba/MNN/blob/master/CMakeLists.txt is not cached, which means it is not seeable for other project that introduce MNN via `add_subdirectory` or `FetchContent`, I am wondering is it possible to cache `MNN_DEPS` and `MNN_INCLUDES` via 
```cmake
set(MNN_DEPS ${MNN_DEPS} CACHE INTERNAL "MNN targets")
set(MNN_INCLUDES ${MNN_INCLUDES} CACHE INTERNAL "MNN include directories")
```
at, maybe before https://github.com/alibaba/MNN/blob/c0d15bf542fdd0830e706cc48fb3a838f1339053/CMakeLists.txt#L943 to make it also available for external projects?
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]