Bindings: Check for libclang without version suffix also
ClosedPublic

Authored by bruns on Aug 17 2018, 7:12 PM.

Details

Summary

The canonical name is libclang.so, which seems to be available on all
distributions (RH, SUSE, Ubuntu, Debian, ...) while the symlinks with
version suffix (e.g. libclang-6.0) are specific to Debian and derivatives.
Keep the current checks, but fallback to the unversioned library name.

Test Plan

on openSUSE TW/Leap:
run cmake
-> libclang is found

Diff Detail

Repository
R240 Extra CMake Modules
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bruns created this revision.Aug 17 2018, 7:12 PM
Restricted Application added projects: Frameworks, Build System. · View Herald TranscriptAug 17 2018, 7:12 PM
Restricted Application added subscribers: kde-buildsystem, kde-frameworks-devel. · View Herald Transcript
bruns requested review of this revision.Aug 17 2018, 7:12 PM
dfaure accepted this revision.Aug 17 2018, 10:12 PM
This revision is now accepted and ready to land.Aug 17 2018, 10:12 PM
This revision was automatically updated to reflect the committed changes.