Skip to content

Commit 67d12ad

Browse files
committed
Install MSVC PDB for Debug builds.
1 parent 9c0a0b8 commit 67d12ad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@ function(shared_lib type def)
154154
LIBRARY # DESTINATION ${TARGET_ARCH}/${CONFIG}/lib
155155
RUNTIME # DESTINATION ${TARGET_ARCH}/${CONFIG}/bin
156156
)
157+
158+
install(
159+
FILES $<TARGET_PDB_FILE:${targ}>
160+
CONFIGURATION Debug
161+
DESTINATION lib
162+
OPTIONAL
163+
)
157164
endfunction()
158165

159166
function(static_lib type def)

0 commit comments

Comments
 (0)