Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

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

Does this answer your question? CMake on Mac: Could NOT find Threads (missing: Threads_FOUND) 273K Jul 25, 2022 at 14:48 Onx seems to be old and doesn't seem to know that modern c runtimes have built in thread support. Remove if condition from the answer in the duplicated question, or replace with if(UNIX) . 273K Jul 25, 2022 at 14:51

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.

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .