Bug#1058950: Target Threads::Threads not found by CMake

Nikolay Kyx knv418 at gmail.com
Mon Dec 18 20:04:35 GMT 2023


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



More information about the debian-science-maintainers mailing list