From 7652828ed354fa0dbad2011bcd6769161fcf4806 Mon Sep 17 00:00:00 2001 From: Steve Williams <90905675+stevewgr@users.noreply.github.com> Date: Thu, 30 May 2024 15:01:44 -0400 Subject: [PATCH] Ensure we install *.pdb files for symbols on msvc as well. --- CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) 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}")