]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: FindNGHTTP2 add static lib name to find_library call
authorfuzzard <fuzzard@kodi.tv>
Mon, 29 Apr 2024 01:27:39 +0000 (11:27 +1000)
committerViktor Szakats <commit@vsz.me>
Mon, 29 Apr 2024 14:49:06 +0000 (16:49 +0200)
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.

CMake/FindNGHTTP2.cmake

index 3957646c43919b16b8a30b3dbed19504d68a1439..d3528cb27b6a194df59294133435e4a63c14bf76 100644 (file)
@@ -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