Skip to content

Commit

Permalink
cmake: FindNGHTTP2 add static lib name to find_library call
Browse files Browse the repository at this point in the history
Add the static library name, nghttp2_static as a name to search.

This provides cmake parity with the winbuild Makefile.vc allowing
the cmake build to find and allow the link to static nghttp2 library.
  • Loading branch information
fuzzard authored and vszakats committed Apr 29, 2024
1 parent b630501 commit 86805bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMake/FindNGHTTP2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ include(FindPackageHandleStandardArgs)

find_path(NGHTTP2_INCLUDE_DIR "nghttp2/nghttp2.h")

find_library(NGHTTP2_LIBRARY NAMES nghttp2)
find_library(NGHTTP2_LIBRARY NAMES nghttp2 nghttp2_static)

find_package_handle_standard_args(NGHTTP2
FOUND_VAR
Expand Down

0 comments on commit 86805bf

Please sign in to comment.