mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-03-23 16:33:35 +08:00
cmake: Fix missing xtreport option
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user