Skip to content

Commit 634dd62

Browse files
committed
squashed from install-pdb-windows
1 parent 3eb2738 commit 634dd62

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

share/rocmcmakebuildtools/cmake/ROCMInstallTargets.cmake

Lines changed: 5 additions & 3 deletions
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,9 +233,11 @@ function(rocm_install_targets)
233233
DESTINATION ${LIB_INSTALL_DIR}
234234
COMPONENT ${development}
235235
)
236-
if(WIN32 AND NOT T_TYPE STREQUAL "INTERFACE_LIBRARY")
236+
if(WIN32 AND
237+
(T_TYPE STREQUAL "SHARED_LIBRARY" OR
238+
T_TYPE STREQUAL "MODULE_LIBRARY" OR
239+
T_TYPE STREQUAL "EXECUTABLE"))
237240
install(FILES $<TARGET_PDB_FILE:${TARGET}>
238-
COMPONENT ${runtime}
239241
DESTINATION ${BIN_INSTALL_DIR} OPTIONAL)
240242
endif()
241243
rocm_set_install_dir_property(

0 commit comments

Comments
 (0)