From 1090b9879c55fe9ee1c05505e32d8c9295f95bc6 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 5 Jan 2025 15:20:03 +0100 Subject: [PATCH] build: Make pdb copy operation happen at install time --- cmake/build_helpers.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index 1722da7b6..fc62edd7d 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -834,7 +834,7 @@ function(generatePDBs) COMMAND_EXPAND_LISTS) 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 () install(FILES ${CMAKE_BINARY_DIR}/${GENERATED_PDB}.pdb DESTINATION ".")