eddic / fastcgipp

fastcgi++: A C++ FastCGI and Web development platform:
https://fastcgipp.isatec.ca
GNU Lesser General Public License v3.0
310 stars 94 forks source link

Thread::Thread unkown #79

Closed Finkman closed 4 years ago

Finkman commented 4 years ago

The library uses Thread::Thread and therefore calls find_package(Threads REQUIRED).

The problem is, that it only calls it on it's own CMakeLists.txt and not within it's FastcgippConfig.cmake.

This results in an error running cmake configure on a project which is using Fastcgipp but not Thread in first place:

 ...
  Target "FastCgi" links to target "Threads::Threads" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
...