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

build: Make pdb copy operation happen at install time

This commit is contained in:
WerWolv 2025-01-05 15:20:03 +01:00
parent 5a6af976cd
commit 1090b9879c

View File

@ -834,7 +834,7 @@ function(generatePDBs)
COMMAND_EXPAND_LISTS) COMMAND_EXPAND_LISTS)
if (IMHEX_REPLACE_DWARF_WITH_PDB) if (IMHEX_REPLACE_DWARF_WITH_PDB)
file(COPY_FILE ${CMAKE_BINARY_DIR}/${PDB}.pdb ${CMAKE_BINARY_DIR}/${GENERATED_PDB}.pdb) install(CODE "file(COPY_FILE ${CMAKE_BINARY_DIR}/${PDB}.pdb ${CMAKE_BINARY_DIR}/${GENERATED_PDB}.pdb)")
endif () endif ()
install(FILES ${CMAKE_BINARY_DIR}/${GENERATED_PDB}.pdb DESTINATION ".") install(FILES ${CMAKE_BINARY_DIR}/${GENERATED_PDB}.pdb DESTINATION ".")