diff options
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | cmake/modules/FindNGHTTP2.cmake | 9 |
2 files changed, 8 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a4bd4b1be..725c0c2fc0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1820,6 +1820,7 @@ if(WIN32) endif(LZ4_FOUND) if (NGHTTP2_FOUND) list (APPEND OPTIONAL_DLLS "${NGHTTP2_DLL_DIR}/${NGHTTP2_DLL}") + list (APPEND OPTIONAL_PDBS "${NGHTTP2_DLL_DIR}/${NGHTTP2_PDB}") endif(NGHTTP2_FOUND) if (SBC_FOUND) list (APPEND OPTIONAL_DLLS "${SBC_DLL_DIR}/${SBC_DLL}") diff --git a/cmake/modules/FindNGHTTP2.cmake b/cmake/modules/FindNGHTTP2.cmake index 6398bd998c..8748210c43 100644 --- a/cmake/modules/FindNGHTTP2.cmake +++ b/cmake/modules/FindNGHTTP2.cmake @@ -44,10 +44,15 @@ if( NGHTTP2_FOUND ) "${NGHTTP2_DLL_DIR}/nghttp2.dll" ) set ( NGHTTP2_DLL ${_nghttp2_dll} - # We're storing filenames only. Should we use STRING instead? CACHE FILEPATH "nghttp2 DLL file name" ) - mark_as_advanced( NGHTTP2_DLL_DIR NGHTTP2_DLL ) + file( GLOB _nghttp2_pdb RELATIVE "${NGHTTP2_DLL_DIR}" + "${NGHTTP2_DLL_DIR}/nghttp2.pdb" + ) + set ( NGHTTP2_PDB ${_nghttp2_pdb} + CACHE FILEPATH "nghttp2 PDB file name" + ) + mark_as_advanced( NGHTTP2_DLL_DIR NGHTTP2_DLL NGHTTP2_PDB ) endif() else() set( NGHTTP2_INCLUDE_DIRS ) |