<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/152268>152268</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Paths to diaguids.lib are exported as absolute paths in Windows LLVMExports.cmake
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          Ext3h
      </td>
    </tr>
</table>

<pre>
    In the exported CMake module `LLVMExports.cmake` (as seen in the provided tarball `lib/cmake/llvm/LLVMExports.cmake`), an absolute path to a dependency is included by accident:

```cmake
# Create imported target LLVMDebugInfoPDB
add_library(LLVMDebugInfoPDB STATIC IMPORTED)

set_target_properties(LLVMDebugInfoPDB PROPERTIES
 INTERFACE_LINK_LIBRARIES "C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/DIA SDK/lib/amd64/diaguids.lib;LLVMBinaryFormat;LLVMObject;LLVMSupport;LLVMDebugInfoCodeView;LLVMDebugInfoMSF"
)
```

`C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/DIA SDK/lib/amd64/diaguids.lib` should be substituted back into `$(VSInstallDir)DIA SDK/lib/amd64/diaguids.lib` on export.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzEVM1u4zgTfBrq0vgMmvqxddDBfwKEiSeGbeQ7Gk2xY3FDiQJJJfHbLyR7Z7Kzc9jbArywyS52dXURvdfXjqhg6Zql2wiH0FhX7D5D3ETSqltRdRAaAvrsrQukYLPHN4LWqsEQsIw_Pb3sd9Ohn9UtvhHLODCxRA-eqAN9z--dfdeKFAR0Eo0ZU42WTJT3JFEa894yUf4Oj4mciQ1gByi9NUMg6DE0ECwgKOqpU9TVN9AedFebYXxH3gDrWivqAotXjE8r4_d1B-YrJmLYOMJAoNsHwYDuSgHGOrYkh2vVvdrDds34CpW6GC0duhsTy18vwOm8OlcbqPaH5-N5tx2Lnl71FC530EvvbE8uaPK_Azgcnw-747nanRhfQfX9vDuWq83u8lR9_3Z5qtbH1bHanYAJsRkpifLg7NVhC6U25Memfy6zqVflXtfOevsa4EX7AQ2cwqC0ZaIUfJ7fU1_Je207NEyU22oFp-23UYZJFGxVljBRKo3XQSs_G8Pxeix5rTt0t9K6FsMj9Cz_oPqvzWnox04-dj8IbqyiF00fv8b3p5IJMWmRf5Xoh2L_DdeMg2_sYBRIAj9IH3QYxvGQWL-B7oKFaTATJpYvp6rzAY3ZasdE_m_xbfdw1SxSRazyOMeIivkiTZIsW87zqCnmPMZkmS9eUaUoxJzzLJaZpEUspUizJNKF4CLlS57xRRrH-YySmKfxgs_TxTzNMmQJpxa1mY32mll3jbT3AxXzVIhsGRmUZPzkfiE6-oDpdBQk3UauGJP-J4erZwk32gf_EyboYKg4YGj86MOv5ADdlw8D_d9dO3oU_q87ZT88_MPt0eBM0YTQ-7vsTJRXHZpBzmrb_vwlpsJ6Z6e5E-VUtWeifNB6L8SfAQAA__-IlYxN">