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)
1495
1495
${export_to_llvmexports}
1496
1496
RUNTIME DESTINATION ${${project} _TOOLS_INSTALL_DIR}
1497
1497
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()
1498
1503
1499
1504
if (NOT LLVM_ENABLE_IDE)
1500
1505
add_llvm_install_targets(install-${name}
@@ -1525,6 +1530,11 @@ macro(add_llvm_example name)
1525
1530
add_llvm_executable(${name} EXPORT_SYMBOLS ${ARGN} )
1526
1531
if( LLVM_BUILD_EXAMPLES )
1527
1532
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()
1528
1538
endif()
1529
1539
get_subproject_title(subproject_title)
1530
1540
set_target_properties(${name} PROPERTIES FOLDER " ${subproject_title} /Examples ")
@@ -1559,6 +1569,11 @@ macro(add_llvm_utility name)
1559
1569
${export_to_llvmexports}
1560
1570
RUNTIME DESTINATION ${LLVM_UTILS_INSTALL_DIR}
1561
1571
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()
1562
1577
1563
1578
if (NOT LLVM_ENABLE_IDE)
1564
1579
add_llvm_install_targets(install-${name}
You can’t perform that action at this time.
0 commit comments