diff --git a/CMakeLists.txt b/CMakeLists.txt index f456d9ff7..5443b6144 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -186,6 +186,16 @@ if(NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL ) RUNTIME DESTINATION "${INSTALL_BIN_DIR}" ARCHIVE DESTINATION "${INSTALL_LIB_DIR}" LIBRARY DESTINATION "${INSTALL_LIB_DIR}" ) + if(MSVC) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/$/$.pdb + DESTINATION bin + CONFIGURATIONS Debug OR RelWithDebInfo + ) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/$/$.pdb + DESTINATION lib + CONFIGURATIONS Debug OR RelWithDebInfo + ) + endif() endif() if(NOT SKIP_INSTALL_HEADERS AND NOT SKIP_INSTALL_ALL ) install(FILES ${ZLIB_PUBLIC_HDRS} DESTINATION "${INSTALL_INC_DIR}")