From baaec5dfecd22bdeac3ed433de67977bd80c4228 Mon Sep 17 00:00:00 2001 From: rexy712 Date: Sun, 11 Apr 2021 15:13:38 -0700 Subject: [PATCH] Fix issue with building tests with static library --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f9bd543..6ca3640 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,7 @@ if(ENABLE_SHARED) else() add_library(rexy STATIC ${SOURCE_LIST}) set(LIBREXY_LIBFLAGS "-lrexy -lpthread") + target_link_libraries(rexy "-lpthread") endif() if(ENABLE_PROFILING)