Skip to content

Commit

Permalink
Install MSVC PDB for Debug builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
bscottm committed Jun 26, 2020
1 parent 9c0a0b8 commit 67d12ad
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@ function(shared_lib type def)
LIBRARY # DESTINATION ${TARGET_ARCH}/${CONFIG}/lib
RUNTIME # DESTINATION ${TARGET_ARCH}/${CONFIG}/bin
)

install(
FILES $<TARGET_PDB_FILE:${targ}>
CONFIGURATION Debug
DESTINATION lib
OPTIONAL
)
endfunction()

function(static_lib type def)
Expand Down

0 comments on commit 67d12ad

Please sign in to comment.