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 f800a43
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 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 All @@ -179,6 +186,13 @@ function(static_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()

if (MSVC)
Expand Down

0 comments on commit f800a43

Please sign in to comment.