cmake: Disable http-api tests if library not available.

This commit is contained in:
Roger A. Light
2026-02-25 11:40:33 +00:00
parent a487cd4f8f
commit b3b4d77ef3
2 changed files with 10 additions and 0 deletions

View File

@@ -119,6 +119,8 @@ if(WITH_HTTP_API)
if(HTTP_API_DIR)
target_compile_definitions(mosquitto PRIVATE "HTTP_API_DIR=\"${HTTP_API_DIR}\"")
endif()
else()
message(WARNING "microhttpd not found, disabling WITH_HTTP_API")
endif()
endif()