SyntaxFix
Write A Post
Hire A Developer
Questions
Here is the right anwser:
ADD_EXECUTABLE(your_executable ${source_files}) TARGET_LINK_LIBRARIES( your_executable pthread )
equivalent to
-lpthread