diff --git a/usr/tests/CMakeLists.txt b/usr/tests/CMakeLists.txt index 40fbe4464..e910a016c 100644 --- a/usr/tests/CMakeLists.txt +++ b/usr/tests/CMakeLists.txt @@ -11,6 +11,7 @@ add_executable(pi pi.go) add_executable(test-malloc test-malloc.c) add_executable(test-malloc-mt test-malloc-mt.c) +target_compile_options(test-malloc-mt PRIVATE -pthread) target_link_libraries(test-malloc-mt pthread) add_executable(server server.go) @@ -20,9 +21,11 @@ add_executable(RCCE_minimum RCCE_minimum.c) target_link_libraries(RCCE_minimum ircce) add_executable(thr_hello thr_hello.c) +target_compile_options(thr_hello PRIVATE -pthread) target_link_libraries(thr_hello pthread) add_executable(signals signals.c) +target_compile_options(signals PRIVATE -pthread) target_link_libraries(signals pthread) # deployment