Skip to content

Commit

Permalink
Ensure we install *.pdb files for symbols on msvc as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
stevewgr committed May 30, 2024
1 parent b144e4c commit 4f8b6d2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,18 @@ 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}/$<CONFIG>/$<TARGET_FILE_BASE_NAME:${ZLIB_SHARED_PROJECT_NAME}>.pdb
DESTINATION bin
CONFIGURATIONS Debug OR RelWithDebInfo
OPTIONAL
)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/$<TARGET_FILE_BASE_NAME:${ZLIB_STATIC_PROJECT_NAME}>.pdb
DESTINATION lib
CONFIGURATIONS Debug OR RelWithDebInfo
OPTIONAL
)
endif()
endif()
if(NOT SKIP_INSTALL_HEADERS AND NOT SKIP_INSTALL_ALL )
install(FILES ${ZLIB_PUBLIC_HDRS} DESTINATION "${INSTALL_INC_DIR}")
Expand Down

0 comments on commit 4f8b6d2

Please sign in to comment.