pthreads test with the compiler options now
This commit is contained in:
parent
195d4352a0
commit
ee2eecf6a2
@ -3,4 +3,9 @@ project(qotd C)
|
||||
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
|
||||
add_executable(qotd main.c quote.c quote.h server.c server.h config.h)
|
||||
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
|
||||
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
add_executable(qotd main.c quote.c quote.h server.c server.h config.h)
|
||||
target_link_libraries(qotd Threads::Threads)
|
||||
Loading…
Reference in New Issue
Block a user