Issue 152268
Summary Paths to diaguids.lib are exported as absolute paths in Windows LLVMExports.cmake
Labels new issue
Assignees
Reporter Ext3h
    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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to