<table><tr><td style="">turbov created this revision.<br />Restricted Application added projects: Frameworks, Build System.<br />Restricted Application added subscribers: Build System, Frameworks.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D8780" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The current way to search for <tt style="background: #ebebeb; font-size: 13px;">libclang</tt> doesn't work for me (Gentoo with clang 4 and 5 installed). <br />
Instead of "brute force", here is a "legal" way (at least for Linux distros) -- use <tt style="background: #ebebeb; font-size: 13px;">llvm-config</tt> first, then "fallback" to the old way.</p>
<p>BTW, the problem w/ the old-way in the used (expected) library name <tt style="background: #ebebeb; font-size: 13px;">libclang-X.Y</tt>... actually, I never seen that name used (which distro it is?)</p>
<p>PS. This is my first patch on the way to make python binding generation works for me (Gentoo). This is what I intended to make it work, cuz want to port Python host plugin to <tt style="background: #ebebeb; font-size: 13px;">kate5</tt>.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R240 Extra CMake Modules</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8780" rel="noreferrer">https://phabricator.kde.org/D8780</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>find-modules/FindPythonModuleGeneration.cmake</div></div></div><br /><div><strong>To: </strong>turbov<br /><strong>Cc: </strong>Frameworks, Build System<br /></div>