Only require libmicrohttpd when building with -DWITH_XC_HTTP=On, resolves #179

This commit is contained in:
Janek Bevendorff 2017-01-24 00:26:16 +01:00
parent 40aa92c5f7
commit 1edc116532
No known key found for this signature in database
GPG Key ID: CFEC2F6850BFFA53

View File

@ -174,7 +174,9 @@ set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_NONE QT_NO_DEBUG)
find_package(Gcrypt 1.6.0 REQUIRED)
find_package(LibMicroHTTPD REQUIRED)
if (WITH_XC_HTTP)
find_package(LibMicroHTTPD REQUIRED)
endif(WITH_XC_HTTP)
find_package(ZLIB REQUIRED)