1
0
mirror of synced 2025-01-11 05:42:15 +01:00

build: Rename output pdb file if necessary

This commit is contained in:
WerWolv 2025-01-05 15:14:25 +01:00
parent 55e39a5d30
commit 5a6af976cd

View File

@ -833,6 +833,10 @@ function(generatePDBs)
) || (exit 0) ) || (exit 0)
COMMAND_EXPAND_LISTS) COMMAND_EXPAND_LISTS)
if (IMHEX_REPLACE_DWARF_WITH_PDB)
file(COPY_FILE ${CMAKE_BINARY_DIR}/${PDB}.pdb ${CMAKE_BINARY_DIR}/${GENERATED_PDB}.pdb)
endif ()
install(FILES ${CMAKE_BINARY_DIR}/${GENERATED_PDB}.pdb DESTINATION ".") install(FILES ${CMAKE_BINARY_DIR}/${GENERATED_PDB}.pdb DESTINATION ".")
add_dependencies(imhex_all ${PDB}_pdb) add_dependencies(imhex_all ${PDB}_pdb)