CMake on Ubuntu: Could NOT find Threads (missing: Threads_FOUND)

3.9k views Asked by At

I'm trying to compile Onx and I am receiving a CMake error message.

I am receiving this error on my ubuntu 20.04 lts:

Could NOT find Threads (missing: Threads_FOUND)

I'm waiting your comments. Thanks for help

1

There are 1 answers

1
Brice M. Dempsey On

When CMake runs it tests for the presence of a number of required libraries and features by compiling test programs. Because the thread library is one of the first things it searches for, any problem with the toolchain may cause the test compilation to fail and show this error.

Look in the CMakeFiles/CMakeError.log file to determine why the compilation is failing and take steps to fix the errors. It may or may not have anything to do with the threads library itself.