Commit ae3de3d
authored
[CMAKE] Conditionally link "clog" in NNPack install (#15359)
"cpuinfo" is a direct dependency of NNPack. It is installed via the
NNPack's cmake script, but the version is not pinned. The "clog"
dependency was recently removed from "cpuinfo"
(pytorch/cpuinfo@3dc3103),
which leads to issues when compiling TVM with support for NNPack.
When building TVM with newly generated docker images and NNPack enabled,
we run into the following cmake configuration error:
```
The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files: NNPACK_CLOG_CONTRIB_LIB
```
This commit intends to fix this failure while also keeping compatibility
with older versions of cpuinfo. It conditionally adds "clog" to the
linker libs variable if it was found.1 parent 0a3ad64 commit ae3de3d
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
0 commit comments