Skip to content

Commit f800a43

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

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

CMakeLists.txt

Lines changed: 14 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)
@@ -179,6 +186,13 @@ function(static_lib type def)
179186
LIBRARY # DESTINATION ${TARGET_ARCH}/${CONFIG}/lib
180187
RUNTIME # DESTINATION ${TARGET_ARCH}/${CONFIG}/bin
181188
)
189+
190+
install(
191+
FILES $<TARGET_PDB_FILE:${targ}>
192+
CONFIGURATION Debug
193+
DESTINATION lib
194+
OPTIONAL
195+
)
182196
endfunction()
183197

184198
if (MSVC)

0 commit comments

Comments
 (0)