Skip to content

cmake: FindNGHTTP2 add static lib name to find_library call - #13495

Closed
fuzzard wants to merge 1 commit into
curl:masterfrom
fuzzard:cmake_nghttp2-static
Closed

cmake: FindNGHTTP2 add static lib name to find_library call#13495
fuzzard wants to merge 1 commit into
curl:masterfrom
fuzzard:cmake_nghttp2-static

Conversation

@fuzzard

@fuzzard fuzzard commented Apr 29, 2024

Copy link
Copy Markdown

Adds 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

curl/winbuild/Makefile.vc

Lines 147 to 158 in dfdd978

!IF "$(ENABLE_NGHTTP2)"=="yes"
# compatibility bit, WITH_NGHTTP2 is the correct flag
WITH_NGHTTP2 = dll
USE_NGHTTP2 = true
NGHTTP2 = dll
!ELSEIF "$(WITH_NGHTTP2)"=="dll"
USE_NGHTTP2 = true
NGHTTP2 = dll
!ELSEIF "$(WITH_NGHTTP2)"=="static"
USE_NGHTTP2 = true
NGHTTP2 = static
!ENDIF

Adds the static library name, nghttp2_static as a name to search.
@vszakats vszakats changed the title [cmake] FindNGHTTP2 add static lib name to find_library call cmake: FindNGHTTP2 add static lib name to find_library call Apr 29, 2024
@vszakats

Copy link
Copy Markdown
Member

Thank you @fuzzard, merged in 86805bf.

@vszakats vszakats closed this Apr 29, 2024
@bagder

bagder commented Apr 30, 2024

Copy link
Copy Markdown
Member

@vszakats remember to add Closes #[num] next time!

@fuzzard
fuzzard deleted the cmake_nghttp2-static branch April 30, 2024 07:11
@vszakats

Copy link
Copy Markdown
Member

@bagder I will do, sorry for missing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants