From 74f68022ee68f7b95abfe54bd131e90a405408e5 Mon Sep 17 00:00:00 2001 From: Peter Colberg Date: Thu, 16 Dec 2021 16:33:19 -0500 Subject: [PATCH] Link acl target with pthread library This resolves a link failure with `-Wl,--no-undefined`. --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e589b0c5..458da2d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -231,7 +231,13 @@ target_include_directories(acl_objs PRIVATE add_library(acl SHARED $) set_property(TARGET acl PROPERTY OUTPUT_NAME "alteracl") -target_link_libraries(acl PRIVATE acl_check_sys_cmd acl_hash acl_threadsupport pkg_editor) +target_link_libraries(acl PRIVATE + acl_check_sys_cmd + acl_hash + acl_threadsupport + pkg_editor + Threads::Threads + ) if(UNIX) # we need this flag to expose symbols, otherwise linking will fail with: # "relocation against protected symbol X can not be used when making a shared object"