mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-09 17:39:13 +08:00
9624235c56
* [czmq] Update to 4.2.1 * [czmq] vcpkg x-add-version czmq * [czmq] Quote paths * [czmq] Overwrite version * [czmq] Fix curl winldap linkage when built as static library * [czmq] Overwrite version * [czmq] Fix dependencies * [czmq] Overwrite version * [czmq] Modernize * [czmq] Overwrite version
33 lines
805 B
CMake
33 lines
805 B
CMake
find_path(LIBMICROHTTPD_INCLUDE_DIR NAMES microhttpd.h)
|
|
|
|
get_filename_component(_prefix_path ${LIBMICROHTTPD_INCLUDE_DIR} PATH)
|
|
|
|
find_library(
|
|
LIBMICROHTTPD_LIBRARY_DEBUG
|
|
NAMES libmicrohttpd-dll_d libmicrohttpd microhttpd
|
|
PATHS ${_prefix_path}/debug/lib
|
|
NO_DEFAULT_PATH
|
|
)
|
|
|
|
find_library(
|
|
LIBMICROHTTPD_LIBRARY_RELEASE
|
|
NAMES libmicrohttpd-dll libmicrohttpd microhttpd
|
|
PATHS ${_prefix_path}/lib
|
|
NO_DEFAULT_PATH
|
|
)
|
|
|
|
unset(_prefix_path)
|
|
|
|
include(SelectLibraryConfigurations)
|
|
select_library_configurations(LIBMICROHTTPD)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(
|
|
LIBMICROHTTPD
|
|
REQUIRED_VARS LIBMICROHTTPD_LIBRARY LIBMICROHTTPD_INCLUDE_DIR
|
|
)
|
|
|
|
if(LIBMICROHTTPD_FOUND)
|
|
set(LIBMICROHTTPD_INCLUDE_DIRS ${LIBMICROHTTPD_INCLUDE_DIR})
|
|
endif()
|