Skip to content

Commit 1024d43

Browse files
committed
adds installation of .pdb files
1 parent fa42398 commit 1024d43

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

lib/CMakeLists.txt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ if (LWS_WITH_STATIC)
188188
set_target_properties(websockets
189189
PROPERTIES
190190
OUTPUT_NAME websockets_static)
191-
endif()
192191

193-
if (LWS_APPEND_DEBUG_SUFFIX_D)
194-
set_target_properties(websockets PROPERTIES DEBUG_POSTFIX d)
192+
if (LWS_APPEND_DEBUG_SUFFIX_D)
193+
set_target_properties(websockets PROPERTIES DEBUG_POSTFIX d)
194+
endif()
195195
endif()
196196

197197
endif()
@@ -227,6 +227,12 @@ if (LWS_WITH_SHARED)
227227
PROPERTY COMPILE_DEFINITIONS
228228
LWS_DLL
229229
LWS_INTERNAL)
230+
231+
if (LWS_APPEND_DEBUG_SUFFIX_D)
232+
set_target_properties(websockets_shared PROPERTIES DEBUG_POSTFIX d)
233+
endif()
234+
install(FILES $<TARGET_PDB_FILE:websockets_shared>
235+
DESTINATION bin OPTIONAL)
230236
endif()
231237

232238
if (APPLE)
@@ -244,10 +250,6 @@ if (LWS_WITH_SHARED)
244250
endif()
245251
endif()
246252

247-
if (LWS_APPEND_DEBUG_SUFFIX_D)
248-
set_target_properties(websockets_shared PROPERTIES DEBUG_POSTFIX d)
249-
endif()
250-
251253
endif()
252254

253255
#

0 commit comments

Comments
 (0)