Package: libnanoflann-dev
Version: 1.5.3+ds-1
Severity: normal

cmake version 3.27.9-1, gcc (Debian 13.2.0-7)

Step to reproduce:
Add line
target_link_libraries(my_shiny_program PRIVATE nanoflann::nanoflann)
into CMakeLists.txt

Actual behaviour:
CMake Error at /usr/share/nanoflann/cmake/nanoflannTargets.cmake:61
(set_target_properties):
  The link interface of target "nanoflann::nanoflann" contains:
    Threads::Threads
  but the target was not found.  Possible reasons include:
    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Why not use find_package() like upstream?
https://github.com/jlblancoc/nanoflann/commit/5af493978bb74f755f0629b79601be9cf5920f11

Reply via email to