File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1495,6 +1495,11 @@ macro(llvm_add_tool project name)
14951495 ${export_to_llvmexports}
14961496 RUNTIME DESTINATION ${${project} _TOOLS_INSTALL_DIR}
14971497 COMPONENT ${name} )
1498+ if (LLVM_ENABLE_PDB)
1499+ install (FILES $<TARGET_PDB_FILE:${name} >
1500+ DESTINATION "${${project} _TOOLS_INSTALL_DIR}" COMPONENT ${name}
1501+ OPTIONAL )
1502+ endif ()
14981503
14991504 if (NOT LLVM_ENABLE_IDE)
15001505 add_llvm_install_targets(install -${name}
@@ -1525,6 +1530,11 @@ macro(add_llvm_example name)
15251530 add_llvm_executable(${name} EXPORT_SYMBOLS ${ARGN} )
15261531 if ( LLVM_BUILD_EXAMPLES )
15271532 install (TARGETS ${name} RUNTIME DESTINATION "${LLVM_EXAMPLES_INSTALL_DIR} " )
1533+ if (LLVM_ENABLE_PDB)
1534+ install (FILES $<TARGET_PDB_FILE:${name} >
1535+ DESTINATION "${LLVM_EXAMPLES_INSTALL_DIR} " COMPONENT ${name}
1536+ OPTIONAL )
1537+ endif ()
15281538 endif ()
15291539 get_subproject_title(subproject_title)
15301540 set_target_properties (${name} PROPERTIES FOLDER "${subproject_title} /Examples" )
@@ -1559,6 +1569,11 @@ macro(add_llvm_utility name)
15591569 ${export_to_llvmexports}
15601570 RUNTIME DESTINATION ${LLVM_UTILS_INSTALL_DIR}
15611571 COMPONENT ${name} )
1572+ if (LLVM_ENABLE_PDB)
1573+ install (FILES $<TARGET_PDB_FILE:${name} >
1574+ DESTINATION "${LLVM_UTILS_INSTALL_DIR} " COMPONENT ${name}
1575+ OPTIONAL )
1576+ endif ()
15621577
15631578 if (NOT LLVM_ENABLE_IDE)
15641579 add_llvm_install_targets(install -${name}
You can’t perform that action at this time.
0 commit comments