Closed carpekd closed 4 years ago
How do i link pthread in the Makefile?
Generally, you can in CMakeLists.txt
find_package(Threads)
target_link_libraries(... ${CMAKE_THREAD_LIBS_INIT})
The answer here provides some additional info https://stackoverflow.com/a/29871891
I corrected this by installing cmake version 3.17.2 from the downloaded tar instead of using yum install cmake
I am building on an EC2 instance running Amazon Linux 2 (derived from centOS i think).
The build gets up to 99% and fails at this point:
How do i link pthread in the Makefile?