The cmake partial output looks like this:
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed The lines
-- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found are output of a call like
find_package(Threads) This call is used in a script CMakeLists.txt by many CMake projects which want to use threads-related functionality (like pthread_create).
When process this call, CMake (by means of FindThreads.cmake script) tries to determine kind of thread support for the current platform.
The check Looking for pthread.h is self-explanatory: CMake checks whether header pthread.h exists and available.
The check Performing Test CMAKE_HAVE_LIBC_PTHREAD is about whether thread support functions are compiled into libc library directly, or one need to link additional libraries (like -lpthread).
The check Looking for pthread_create in pthreads tries to find pthreads library and function pthread_create in it.
The check Looking for pthread_create in pthread tries to find pthread library and function pthread_create in it.
That particular output could be interpreted as:
The platform supports threads by providing the header
pthread.hand the librarypthread.
This output is common for Unix-like systems. Despite "Failed" and "not found" words, this is perfectly good output.
Performing Test CMAKE_HAVE_LIBC_PTHREAD - FailedLINK : fatal error LNK1104: cannot open file 'c:\hwloc-win32-build-2.5.0\lib.obj' [C:\oneTBB-master\build\src\tbbbind\t bbbind_2_5.vcxproj] despite I downloaded and passed path of hwloc. Would you help me?
echo $LastExitCodefor powershell,echo $?in bash... (both need to be run immediately after you run cmake, since they can only access the exit code of the last command)