From 33d14397c49340a37551410148830dd4b9ec1fb6 Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Sun, 8 Feb 2026 15:37:11 +0100 Subject: [PATCH] Fix build with USE_LIBWRAP Signed-off-by: Jan Palus --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8ac47d87..685bb3e4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -126,7 +126,7 @@ endif() option(USE_LIBWRAP "Include tcp-wrappers support?" OFF) if(USE_LIBWRAP) - target_sources(mosquitto wrap) + target_link_libraries(mosquitto PRIVATE wrap) target_compile_definitions(mosquitto PRIVATE "WITH_WRAP") endif()