Fix build with USE_LIBWRAP

Signed-off-by: Jan Palus <jpalus@fastmail.com>
This commit is contained in:
Jan Palus
2026-02-08 15:37:11 +01:00
committed by Roger Light
parent 64ccdc712d
commit 33d14397c4

View File

@@ -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()