Skip to content

Conversation

@ribtoks
Copy link

@ribtoks ribtoks commented Sep 2, 2023

Closes #29

@ribtoks ribtoks mentioned this pull request Sep 2, 2023
message("ClangCl does not support pdb generation with static libraries")
elseif(MSVC)
install(FILES ${PROJECT_BINARY_DIR}/raw.pdb ${PROJECT_BINARY_DIR}/raw_r.pdb
install(FILES ${PROJECT_BINARY_DIR}/${CMAKE_BUILD_TYPE}/raw${CMAKE_DEBUG_POSTFIX}.pdb ${PROJECT_BINARY_DIR}/${CMAKE_BUILD_TYPE}/raw_r${CMAKE_DEBUG_POSTFIX}.pdb
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MSVC is a multi-config generator in CMake for which CMAKE_BUILD_TYPE is not defined/used. See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html.

Copy link
Author

@ribtoks ribtoks Sep 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just used this code and it worked for me. Do you know what should be used instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[install] Install incorrect pdb name, missing suffix ${CMAKE_DEBUG_POSTFIX}

2 participants