Skip to content

Commit

Permalink
* MDF [cmake] link static quic lib
Browse files Browse the repository at this point in the history
Signed-off-by: Hermann0222 <yukang.wei@emqx.io>
  • Loading branch information
StargazerWayne committed Nov 30, 2023
1 parent 96cd7dc commit 2077f76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/supplemental/quic/msquic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ if(NNG_QUIC_LIB STREQUAL "msquic")
Taking MSQUIC as quic lib
************************************************************")
set(_MSQUIC_ROOT_HINTS ${MSQUIC_ROOT_DIR} ENV MSQUIC_ROOT_DIR)
SET(QUIC_BUILD_SHARED OFF)
add_subdirectory(${PROJECT_SOURCE_DIR}/extern/msquic msquic)

nng_defines(QUIC_TLS_ENGINE_INIT=nng_quic_libs_init_msquic)
Expand All @@ -27,11 +28,14 @@ if(NNG_QUIC_LIB STREQUAL "msquic")
PATHS /usr/local
PATH_SUFFIXES include)

set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_STATIC_LIBRARY_SUFFIX})
find_library(MSQUIC_LIBRARIES
NAMES msquic
HINTS ${_MSQUIC_ROOT_HINTS}
PATHS /usr/local
PATH_SUFFIXES lib)

unset(CMAKE_FIND_LIBRARY_SUFFIXES)

set(QUIC_LIBRARIES
${MSQUIC_LIBRARIES})
Expand Down

0 comments on commit 2077f76

Please sign in to comment.