$ pkg install ncnn cmake
$ echo 'find_package(ncnn REQUIRED)' >CMakeLists.txt
$ cmake -Wno-dev .
CMake Error at /usr/local/lib/cmake/ncnn/ncnn.cmake:79 (message):
The imported target "ncnn" references the file
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
but not all the files it references.
Call Stack (most recent call first):
Maybe update. ArchLinux has more recent snapshot which isn't affected.
A commit references this bug:
Date: Mon Sep 2 05:58:59 UTC 2019
New revision: 510759
science/ncnn: Update 20190611-40-gd3be711 -> 20190611-113-g46e7ac7
Suggested by: jbeich
Looks like this one might be closed?
Based on this test:
[adridg@beastie /tmp/derp]$ cat CMakeLists.txt
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
[adridg@beastie /tmp/derp]$ cmake .
-- The C compiler identification is Clang 8.0.1
-- The CXX compiler identification is Clang 8.0.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenMP_C: -fopenmp=libomp (found version "3.1")
-- Found OpenMP_CXX: -fopenmp=libomp (found version "3.1")
-- Found OpenMP: TRUE (found version "3.1")
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/derp
[adridg@beastie /tmp/derp]$ make
Scanning dependencies of target pr240187
[ 50%] Building C object CMakeFiles/pr240187.dir/main.c.o
[100%] Linking CXX executable pr240187
[100%] Built target pr240187
Closing as "fixed".