FindThreads.cmake does not use find_path to find pthread.h
I have a bit of a non standard system where glibc includes are not in /usr/include (actually /usr/include does not exist).
Typically, passing all the needed include paths in CMAKE_SYSTEM_INCLUDE_PATH
works, however FindThreads.cmake
will try to include pthread.h without using something like find_path
that would resolve the proper path.
I believe FindThreads.cmake
should honor CMAKE_SYSTEM_INCLUDE_PATH
when looking for pthread.h - that'd make a lot of sense (I'm not well versed enough with cmake to write a patch to that effect unfortunately).