[Fix] correct ncnn_DIR (#261)

* correct ncnn_DIR

* change NCNN_DIR to ncnn_DIR
pull/12/head
lvhan028 2021-12-08 10:29:07 +08:00 committed by GitHub
parent bca8cc0897
commit 4f70434070
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -52,10 +52,10 @@ cmake -DMMDEPLOY_TARGET_BACKENDS=ncnn ..
make -j$(nproc)
```
If you haven't installed NCNN in the default path, please add `-DNCNN_DIR` flag in cmake.
If you haven't installed NCNN in the default path, please add `-Dncnn_DIR` flag in cmake.
```bash
cmake -DMMDEPLOY_TARGET_BACKENDS=ncnn -Dncnn_DIR=/path/to/ncnn/lib/cmake/ncnn ..
cmake -DMMDEPLOY_TARGET_BACKENDS=ncnn -Dncnn_DIR={path/of/ncnn}/build/install/lib/cmake/ncnn ..
make -j$(nproc)
```