From 3e6529f16a20b71f7f2050b5db833ec4941ade44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20F=C3=BCrmetz?= Date: Wed, 22 Nov 2017 10:12:22 +0100 Subject: Link libpthread into module --- CMakeLists.txt | 5 +++++ vterm-module.h | 1 + 2 files changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b8953e4..21d8551 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,11 @@ target_link_libraries(vterm-module vterm) # Link with libutil target_link_libraries(vterm-module util) +# Link with pthread +set(THREADS_PREFER_PTHREAD_FLAG ON) +find_package(Threads REQUIRED) +target_link_libraries(vterm-module Threads::Threads) + # We need the right emacs-module header set(EMACS_SOURCE "" CACHE PATH "Path to emacs source.") diff --git a/vterm-module.h b/vterm-module.h index b971592..477ad01 100644 --- a/vterm-module.h +++ b/vterm-module.h @@ -3,6 +3,7 @@ #include #include +#include #include #include -- cgit v1.0