Fix libmicrohttpd integration in the server plugin statically linking

This commit is contained in:
Casey Langen 2020-12-06 16:39:31 -08:00 committed by casey langen
parent 58adddd7a1
commit d3bcb053b6
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@
* additional fixes for older versions of libcurl (< 7.2.0)
* relax client/server version matching to exclude patch version (e.g. versions
0.96.0 and 0.96.1 are considered compatible, but 0.96 and 0.97 are not)
* upgraded libmicrohttpd to 0.9.71 on macOS and fixed static build
--------------------------------------------------------------------------------

View File

@ -31,9 +31,9 @@ if (${LINK_STATICALLY} MATCHES "true")
include (ExternalProject)
ExternalProject_Add(libmicrohttpd
URL https://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.62.tar.gz
URL https://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.71.tar.gz
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND ./configure --enable-https=no --disable-curl --prefix=${CMAKE_CURRENT_SOURCE_DIR}/microhttpd/
CONFIGURE_COMMAND ./configure --enable-https=no --disable-curl --prefix=${CMAKE_CURRENT_SOURCE_DIR}/microhttpd/.libs/
BUILD_COMMAND make
INSTALL_COMMAND make install
TEST_COMMAND "")