MXS-1220: Always build libmicrohttpd
This allows MaxScale to use the PATCH functionality that's only in the newer versions of the library. It also removes some of the problems that exist with older systems that don't support all of the options.
This commit is contained in:
10
cmake/BuildMicroHttpd.cmake
Normal file
10
cmake/BuildMicroHttpd.cmake
Normal file
@ -0,0 +1,10 @@
|
||||
ExternalProject_Add(libmicrohttpd
|
||||
URL http://ftpmirror.gnu.org/libmicrohttpd/libmicrohttpd-0.9.54.tar.gz
|
||||
SOURCE_DIR ${CMAKE_BINARY_DIR}/libmicrohttpd/
|
||||
CONFIGURE_COMMAND ${CMAKE_BINARY_DIR}/libmicrohttpd//configure --prefix=${CMAKE_BINARY_DIR}/libmicrohttpd/ --enable-shared --with-pic
|
||||
BINARY_DIR ${CMAKE_BINARY_DIR}/libmicrohttpd/
|
||||
BUILD_COMMAND make
|
||||
INSTALL_COMMAND make install)
|
||||
|
||||
include_directories(${CMAKE_BINARY_DIR}/libmicrohttpd/include/)
|
||||
set(MICROHTTPD_LIBRARIES ${CMAKE_BINARY_DIR}/libmicrohttpd/lib/libmicrohttpd.a)
|
Reference in New Issue
Block a user