File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,6 +119,8 @@ if(WITH_HTTP_API)
119119 if (HTTP_API_DIR)
120120 target_compile_definitions (mosquitto PRIVATE "HTTP_API_DIR=\" ${HTTP_API_DIR} \" " )
121121 endif ()
122+ else ()
123+ message (WARNING "microhttpd not found, disabling WITH_HTTP_API" )
122124 endif ()
123125endif ()
124126
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ add_subdirectory(c)
22
33file (GLOB PY_TEST_FILES [0-9][0-9]-*.py )
44file (GLOB PY_PERSIST_TEST_FILES 15-*.py )
5+ file (GLOB PY_HTTP_API_TEST_FILES 22-*.py )
56
67list (APPEND PY_TEST_FILES "${CMAKE_CURRENT_SOURCE_DIR } /msg_sequence_test.py" )
78
@@ -18,6 +19,13 @@ set(EXCLUDE_LIST
1819 08-ssl-bridge-helper
1920)
2021
22+ if (NOT MICROHTTPD_LIBRARY)
23+ foreach (PY_HTTP_API_TEST_FILE ${PY_HTTP_API_TEST_FILES} )
24+ get_filename_component (PY_HTTP_API_TEST_NAME ${PY_HTTP_API_TEST_FILE} NAME_WE )
25+ list (APPEND EXCLUDE_LIST ${PY_HTTP_API_TEST_NAME} )
26+ endforeach ()
27+ endif ()
28+
2129foreach (PY_PERSIST_TEST_FILE ${PY_PERSIST_TEST_FILES} )
2230 get_filename_component (PY_PERSIST_TEST_NAME ${PY_PERSIST_TEST_FILE} NAME_WE )
2331 list (APPEND EXCLUDE_LIST ${PY_PERSIST_TEST_NAME} )
You can’t perform that action at this time.
0 commit comments