From f44ecaa4f27e7538ddcad66d40e543bffa2d2d86 Mon Sep 17 00:00:00 2001 From: manuel Date: Sun, 4 Jun 2017 16:57:49 +0200 Subject: sync with upstream --- project/cmake/modules/FindMicroHttpd.cmake | 49 ------------------------------ 1 file changed, 49 deletions(-) delete mode 100644 project/cmake/modules/FindMicroHttpd.cmake (limited to 'project/cmake/modules/FindMicroHttpd.cmake') diff --git a/project/cmake/modules/FindMicroHttpd.cmake b/project/cmake/modules/FindMicroHttpd.cmake deleted file mode 100644 index 7d011fa..0000000 --- a/project/cmake/modules/FindMicroHttpd.cmake +++ /dev/null @@ -1,49 +0,0 @@ -#.rst: -# FindMicroHttpd -# -------------- -# Finds the MicroHttpd library -# -# This will will define the following variables:: -# -# MICROHTTPD_FOUND - system has MicroHttpd -# MICROHTTPD_INCLUDE_DIRS - the MicroHttpd include directory -# MICROHTTPD_LIBRARIES - the MicroHttpd libraries -# MICROHTTPD_DEFINITIONS - the MicroHttpd definitions -# -# and the following imported targets:: -# -# MicroHttpd::MicroHttpd - The MicroHttpd library - -if(PKG_CONFIG_FOUND) - pkg_check_modules(PC_MICROHTTPD libmicrohttpd>=0.4 QUIET) -endif() - -find_path(MICROHTTPD_INCLUDE_DIR NAMES microhttpd.h - PATHS ${PC_MICROHTTPD_INCLUDEDIR}) -find_library(MICROHTTPD_LIBRARY NAMES microhttpd libmicrohttpd - PATHS ${PC_MICROHTTPD_LIBDIR}) - -set(MICROHTTPD_VERSION ${PC_MICROHTTPD_VERSION}) - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(MicroHttpd - REQUIRED_VARS MICROHTTPD_LIBRARY MICROHTTPD_INCLUDE_DIR - VERSION_VAR MICROHTTPD_VERSION) - -if(MICROHTTPD_FOUND) - set(MICROHTTPD_LIBRARIES ${MICROHTTPD_LIBRARY}) - set(MICROHTTPD_INCLUDE_DIRS ${MICROHTTPD_INCLUDE_DIR}) - set(MICROHTTPD_DEFINITIONS -DHAVE_LIBMICROHTTPD=1) - - if(NOT WIN32) - find_library(GCRYPT_LIBRARY gcrypt) - find_library(GPGERROR_LIBRARY gpg-error) - list(APPEND MICROHTTPD_LIBRARIES ${GCRYPT_LIBRARY} ${GPGERROR_LIBRARY}) - mark_as_advanced(GCRYPT_LIBRARY GPGERROR_LIBRARY) - if(NOT APPLE AND NOT CORE_SYSTEM_NAME STREQUAL android) - list(APPEND MICROHTTPD_LIBRARIES "-lrt") - endif() - endif() -endif() - -mark_as_advanced(MICROHTTPD_LIBRARY MICROHTTPD_INCLUDE_DIR) -- cgit v1.2.3