[libpng] CMakeLists.txt: Fix PDB installation.

PNG_LIB_NAME was removed from CMakeLists.txt in v1.6.40, which was added
in rom-properties 2.2. No one seems to have noticed its absence, though...

Affects: v2.2 - v2.4.1
This commit is contained in:
David Korth 2025-04-20 02:19:28 -04:00
parent 8b17f8c5c5
commit 301c895d33

View File

@ -1064,8 +1064,8 @@ if(NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL)
# FIXME: Generator PDB expression doesn't have the debug postfix for some reason,
# so cpack fails in debug builds if we get the PDB property.
INCLUDE(DirInstallPaths)
SET(PDB_FILENAME_D "$<TARGET_FILE_DIR:png_shared>/lib${PNG_LIB_NAME}${CMAKE_DEBUG_POSTFIX}.pdb")
SET(PDB_FILENAME_R "$<TARGET_FILE_DIR:png_shared>/lib${PNG_LIB_NAME}${CMAKE_RELEASE_POSTFIX}.pdb")
SET(PDB_FILENAME_D "$<TARGET_FILE_DIR:png_shared>/libpng${PNGLIB_MAJOR}${PNGLIB_MINOR}${CMAKE_DEBUG_POSTFIX}.pdb")
SET(PDB_FILENAME_R "$<TARGET_FILE_DIR:png_shared>/libpng${PNGLIB_MAJOR}${PNGLIB_MINOR}${CMAKE_RELEASE_POSTFIX}.pdb")
INSTALL(FILES "${PDB_FILENAME_D}" "${PDB_FILENAME_R}"
DESTINATION "${DIR_INSTALL_DLL_DEBUG}"
COMPONENT "debug"