<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - LLVM/Clang Windows installer doesn't provide CMake package information"
href="https://bugs.llvm.org/show_bug.cgi?id=47878">47878</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LLVM/Clang Windows installer doesn't provide CMake package information
</td>
</tr>
<tr>
<th>Product</th>
<td>Packaging
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Windows Installer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>cristian.adam@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>After installing LLVM-11.0.0-win64.exe there is no useful CMake package
information present:
c:\Program Files\LLVM\lib\cmake
$ tree /f
C:.
└───llvm
LLVMConfigExtensions.cmake
Without the CMake package files one cannot simply configure a project that
consumes LLVM libraries with CMake like for example:
list(APPEND CMAKE_PREFIX_PATH "c:\\Program Files\\LLVM")
find_package(Clang)
target_link_libraries(my_target PRIVATE Clang)
In comparsion the Ubuntu 20.04
clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04.tar.xz package contains:
C:\llvm\clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04\lib\cmake
$ tree /f
C:.
├───clang
│ ClangConfig.cmake
│ ClangTargets-release.cmake
│ ClangTargets.cmake
│
├───lld
│ LLDConfig.cmake
│ LLDTargets-release.cmake
│ LLDTargets.cmake
│
├───llvm
│ AddLLVM.cmake
│ AddLLVMDefinitions.cmake
│ AddOCaml.cmake
│ AddSphinxTarget.cmake
│ CheckAtomic.cmake
│ CheckCompilerVersion.cmake
│ CheckLinkerFlag.cmake
│ ChooseMSVCCRT.cmake
│ CrossCompile.cmake
│ DetermineGCCCompatible.cmake
│ FindGRPC.cmake
│ FindLibpfm.cmake
│ FindOCaml.cmake
│ FindSphinx.cmake
│ FindZ3.cmake
│ GenerateVersionFromVCS.cmake
│ HandleLLVMOptions.cmake
│ HandleLLVMStdlib.cmake
│ LLVM-Config.cmake
│ LLVMConfig.cmake
│ LLVMConfigExtensions.cmake
│ LLVMConfigVersion.cmake
│ LLVMDistributionSupport.cmake
│ LLVMExports-release.cmake
│ LLVMExports.cmake
│ LLVMExternalProjectUtils.cmake
│ LLVMInstallSymlink.cmake
│ LLVMProcessSources.cmake
│ TableGen.cmake
│ TensorFlowCompile.cmake
│ UseLibtool.cmake
│ VersionFromVCS.cmake
│
├───mlir
│ AddMLIR.cmake
│ MLIRConfig.cmake
│ MLIRTargets-release.cmake
│ MLIRTargets.cmake
│
└───polly
PollyConfig.cmake
PollyExports-all.cmake</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>