cmake: Fix missing xtreport option

This commit is contained in:
Roger A. Light
2026-03-13 11:51:12 +00:00
parent 9a3423238c
commit 3bdd3c1ab7

View File

@@ -96,6 +96,7 @@ option_env(WITH_OLD_KEEPALIVE "Use legacy keepalive check mechanism?" OFF)
option_env(WITH_PERSISTENCE "Include legacy persistence support?" ON)
option_env(WITH_PERSISTENCE "Include persistence support?" ON)
option_env(WITH_SYS_TREE "Include $SYS tree support?" ON)
option_env(WITH_XTREPORT "Include xtreport support (debugging only)?" ON)
set(HTTP_API_DIR "Default http_api directory" CACHE STRING "")
@@ -236,6 +237,10 @@ if(WITH_WEBSOCKETS)
endif()
endif()
if(WITH_XTREPORT)
target_compile_definitions(mosquitto PRIVATE "WITH_XTREPORT")
endif()
if(WIN32 OR CYGWIN)
target_sources(mosquitto PRIVATE service.c)
endif()