mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-03-23 16:33:35 +08:00
cmake: Disable http-api tests if library not available.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user