aws/aws-sdk-cpp

Missing debug PDB files when building and installing with cmake

nanocom opened this issue · 4 comments

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

In the install folder:
image

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 $<TARGET_PDB_FILE:MyExecutable> 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

This is a duplicate of this issue: #1936
closing this one

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

i don't think it's a duplicate, the pdb files are well generated when compiling on my computer, but they just aren't copied