From 41ab1cfe991d74b428f12b1c80c34d1d1ba6e968 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Thu, 13 Jan 2022 17:55:14 +0100 Subject: [PATCH] Add pthread-library to CMakeList --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3aadcdf..3fe66b3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,3 +3,7 @@ cmake_minimum_required(VERSION 3.22.1) project(LTDFS) add_executable(${PROJECT_NAME} src/main.cpp) + +set(THREADS_PREFER_PTHREAD_FLAG ON) +find_package(Threads REQUIRED) +target_link_libraries(${PROJECT_NAME} PRIVATE Threads::Threads)