From 85481d521cfb996e7487a95f3727474d79e27281 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 9 Jun 2021 22:28:01 +0800 Subject: ... --- operating-system-experiment/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'operating-system-experiment/CMakeLists.txt') diff --git a/operating-system-experiment/CMakeLists.txt b/operating-system-experiment/CMakeLists.txt index 2c46b0f..540574b 100644 --- a/operating-system-experiment/CMakeLists.txt +++ b/operating-system-experiment/CMakeLists.txt @@ -12,6 +12,10 @@ find_package(Microsoft.GSL CONFIG REQUIRED) add_library(cru_system SHARED Thread.cpp) target_link_libraries(cru_system PUBLIC Microsoft.GSL::GSL fmt::fmt) target_compile_definitions(cru_system PUBLIC CRU_EXPORT_API) +if(UNIX) +target_link_libraries(cru_system PUBLIC pthread) +endif() + add_executable(main main.cpp) target_link_libraries(main PRIVATE cru_system) \ No newline at end of file -- cgit v1.2.3