From 396ed158f5237ab5f2627eea92883544d5c61ee7 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Mon, 9 Mar 2026 12:12:42 +0100 Subject: [PATCH] Do not include PDB files in windows package when uploading symbols to bugsplat. --- cmake/install/cleanCPack.cmake.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmake/install/cleanCPack.cmake.in b/cmake/install/cleanCPack.cmake.in index 9689595a4..4a0d259f6 100644 --- a/cmake/install/cleanCPack.cmake.in +++ b/cmake/install/cleanCPack.cmake.in @@ -94,10 +94,15 @@ elseif(WIN32) message(FATAL_ERROR "Failed to upload symbols! ${CPACK_COMMAND_RESULT}") endif() endif() + ##################################################### # Clean all unwanted files to package. ##################################################### - remove_file("${CPACK_TEMPORARY_INSTALL_DIRECTORY}/*/Qt*.pdb") + if(@ENABLE_BUGSPLAT_SYMBOLS_UPLOAD@) + remove_file("${CPACK_TEMPORARY_INSTALL_DIRECTORY}/*/*.pdb") + else() + remove_file("${CPACK_TEMPORARY_INSTALL_DIRECTORY}/*/Qt*.pdb") + endif() # TODO: remove all pdb when CrashReporter is available. Symbols for crashing are in server so it is not needed for deployment. # if debugging is needed, we could rebuild it and use pdb from local build instead of using official binaries.