Imported Upstream version 7.53.1
[platform/upstream/curl.git] / CMake / FindNGHTTP2.cmake
1 include(FindPackageHandleStandardArgs)
2
3 find_path(NGHTTP2_INCLUDE_DIR "nghttp2/nghttp2.h")
4
5 find_library(NGHTTP2_LIBRARY NAMES nghttp2)
6
7 find_package_handle_standard_args(NGHTTP2
8     FOUND_VAR
9       NGHTTP2_FOUND
10     REQUIRED_VARS
11       NGHTTP2_LIBRARY
12       NGHTTP2_INCLUDE_DIR
13     FAIL_MESSAGE
14       "Could NOT find NGHTTP2"
15 )
16
17 set(NGHTTP2_INCLUDE_DIRS ${NGHTTP2_INCLUDE_DIR} )
18 set(NGHTTP2_LIBRARIES ${NGHTTP2_LIBRARY})