Documentation for FindThreads not clear about use of find_package
The documentation for the FindThreads module implies one should use it instead of find_package(Threads)
; and, indeed, this is as its name suggests; and it creates a Threads::Threads
target. But it should be made clear in the documentation whether indeed we should forego find_package()
w.r.t. threads or not.
It must also be clarified what to do "afterwards", in the installed package -config.make
file: Whether to use find_dependency()
or FindThreads()
again.
See also my question about this on SO and the discussion in comments there.