diff options
| author | Lukas Fürmetz <fuermetz@mailbox.org> | 2017-11-22 10:12:22 +0100 |
|---|---|---|
| committer | Lukas Fürmetz <fuermetz@mailbox.org> | 2017-11-22 10:12:22 +0100 |
| commit | 3e6529f16a20b71f7f2050b5db833ec4941ade44 (patch) | |
| tree | 9106ae24cfdad1650abc0df23110f0d7e43441f8 /CMakeLists.txt | |
| parent | 31db3e6a75b98d64c52fcf989bb09e7486caa1fd (diff) | |
Link libpthread into modulelink_pthread
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
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.") |
