Cannot link with nghttp2_static.lib #7446
I'm trying to build libcurl.dll on Windows with Visual Studio 2017 with OpenSSL and nghttp2 as dependencies.
Link fails, telling it's unable to find
Here is how I build NgHttp2 on Windows (
$ git clone ... $ cd nghttp2 $ cmake -DCMAKE_BUILD_TYPE=Release ^ -DCMAKE_INSTALL_PREFIX=..\deps ^ -DENABLE_LIB_ONLY=ON ^ -DENABLE_STATIC_LIB=ON ^ -DENABLE_SHARED_LIB=OFF ^ -H. ^ -Bbuild $ cmake --build build --config Release --target install
I'm not sure if it is due to a change in NgHttp2 or due to my build environment.
The text was updated successfully, but these errors were encountered:
- Support both nghttp2.lib and nghttp2_static.lib for static nghttp2. nghttp2 briefly changed its static lib name to nghttp2_static, but then made the _static suffix optional. Ref: nghttp2/nghttp2#1394 Ref: nghttp2/nghttp2#1418 Ref: nghttp2/nghttp2#1466 Reported-by: Pierre Yager Fixes curl#7446 Closes #xxxx