<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/77042>77042</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Missing install prefix in llvm/cmake config cmake files
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
rezso
</td>
</tr>
</table>
<pre>
I tried to compile Qt 6.6.1 with llvm 17.0.6 release, but failed:
`CMake Error in qttools/src/linguist/lupdate/CMakeLists.txt:
Imported target "WrapLibClang::WrapLibClang" includes non-existent path
"//include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.`
(and same error for qttools/src/qdoc/qdoc/CMakeLists.txt)
Yes, "//include" really nonexistent directory, but where is the "usr" from the include path?
I looked into ClangConfig.cmake and LLVMConfig.cmake files. In these files the include path definition is ${CLANG_INSTALL_PREFIX}/include and ${LLVM_INSTALL_PREFIX}/include, but I don' found any definition for CLANG_INSTALL_PREFIX and LLVM_INSTALL_PREFIX.
As a quick workaround, I added
set(CLANG_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@") and
set(LLVM_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@")
to *Config.cmake.in files, and recompiled the llvm.
After this the qt compilation was successful.
But why happened this? This is a bug, or I missed anything?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMVV1z6jYQ_TXiZed6bGEgPPDABdzxlKS3uenXU0ZYa1uNkBxpnYT--o5kk3CTTKcvYMm7Zz_O2bXwXjUGccVmX9lsOxE9tdatHP7j7eRg5WlVAjmFEshCZY-d0gi_EsyTeZLBs6IWtH46QrZI0mQODjUKj4xv4NAT1EJplGy6ZumWpeffebq5Fg8IO-esA2Xgkcha7RkvvKsYL7QyTa88hce-k4KQ8SL67JU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