aws / aws/aws-sdk-cpp

Missing debug PDB files when building and installing with cmake

Aperta
#2,963 15 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug p3
Lingua principale
C++
Stelle
2.2k
Fork
1.2k
Merge medio
4g 11h
PR unite (30g)
13

Descrizione

### Describe the bug

When building the SDK in debug mode with cmake, it generates the .pdb files alongside the dlls in the build/src folder
But when installing, the pdb files are not copied in the install folder

In the build folder:
![image](https://github.com/aws/aws-sdk-cpp/assets/667482/bdedc75d-0cfe-4c68-b381-a1e0daf5d126)

In the install folder:
![image](https://github.com/aws/aws-sdk-cpp/assets/667482/53c52c0e-20ee-4b01-837f-7f47511f3387)

I would like these debug files to be able to have more detailed stacktraces on sentry

### Expected Behavior

Copy the pdb files in the install folder along the dlls in debug mode

### Current Behavior

Pdb files are not copied alongside the dll files during the cmake installation

### Reproduction Steps

Build the sdk in debug mode

### Possible Solution

Maybe add something like this somewhere in the cmake file?

```
if (MSVC)
install(FILES $ DESTINATION bin OPTIONAL)
endif()
```

### Additional Information/Context

My build script:

```
cmake -B build `
-DCMAKE_BUILD_TYPE=Debug `
-DCMAKE_INSTALL_PREFIX=install `
-DENABLE_TESTING=OFF `
-DAUTORUN_UNIT_TESTS=OFF `
-DCPP_STANDARD=20 `
-DBUILD_ONLY="s3;transfer"

cmake --build build --config=Debug

cmake --install build --prefix install --config Debug
```

### AWS CPP SDK version used

1.11.328

### Compiler and Version used

MSVC 14.39.33519

### Operating System and version

Windows 11

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Riproduci il problema con i comandi forniti di compilazione e installazione CMake in modalità Debug su MSVC, quindi esamina le regole di installazione CMake per i target DLL dell’SDK. Il lavoro è completato quando i file PDB generati vengono installati insieme alle DLL nella cartella di installazione Debug, mantenendo al contempo il comportamento esistente per le altre configurazioni.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
cmake, cpp
Ambito
build-system
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.