From 5a6af976cdda459306417a9fbf7b75e003896533 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 5 Jan 2025 15:14:25 +0100 Subject: [PATCH] build: Rename output pdb file if necessary --- cmake/build_helpers.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index cd51e7538..1722da7b6 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -833,6 +833,10 @@ function(generatePDBs) ) || (exit 0) 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 ".") add_dependencies(imhex_all ${PDB}_pdb)