Skip to content

Commit 86e6e26

Browse files
authored
Install PDB files on Windows (#284)
1 parent 33541cd commit 86e6e26

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

share/rocmcmakebuildtools/cmake/ROCMInstallTargets.cmake

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ######################################################################################################################
2-
# Copyright (C) 2017 Advanced Micro Devices, Inc.
2+
# Copyright (C) 2026 Advanced Micro Devices, Inc.
33
# ######################################################################################################################
44

55
cmake_policy(SET CMP0057 NEW)
@@ -233,6 +233,13 @@ function(rocm_install_targets)
233233
DESTINATION ${LIB_INSTALL_DIR}
234234
COMPONENT ${development}
235235
)
236+
if(WIN32 AND
237+
(T_TYPE STREQUAL "SHARED_LIBRARY" OR
238+
T_TYPE STREQUAL "MODULE_LIBRARY" OR
239+
T_TYPE STREQUAL "EXECUTABLE"))
240+
install(FILES $<TARGET_PDB_FILE:${TARGET}>
241+
DESTINATION ${BIN_INSTALL_DIR} OPTIONAL)
242+
endif()
236243
rocm_set_install_dir_property(
237244
TARGETS ${TARGET}
238245
RUNTIME_DESTINATION ${BIN_INSTALL_DIR}

0 commit comments

Comments
 (0)