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)