aboutsummaryrefslogtreecommitdiff
path: root/operating-system-experiment/CMakeLists.txt
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-06-09 22:28:01 +0800
committercrupest <crupest@outlook.com>2021-06-09 22:28:01 +0800
commit85481d521cfb996e7487a95f3727474d79e27281 (patch)
tree967f655f14657cf0392fc567fb8144f0101b79a1 /operating-system-experiment/CMakeLists.txt
parenta2cf634d1bceb3614b1f5adcab5b2b41cddbd3c4 (diff)
downloadlife-85481d521cfb996e7487a95f3727474d79e27281.tar.gz
life-85481d521cfb996e7487a95f3727474d79e27281.tar.bz2
life-85481d521cfb996e7487a95f3727474d79e27281.zip
...
Diffstat (limited to 'operating-system-experiment/CMakeLists.txt')
-rw-r--r--operating-system-experiment/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
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