Package name in CMakeLists.txt is not correct (for me)
kbabioch opened this issue · 2 comments
kbabioch commented
While packaging this for Arch Linux, I've realized that the provided CMakeLists.txt
file is not working for me out of-the-box. The offending line is this:
pkg_check_modules(LIBLDNS REQUIRED libldns)
I'm not a CMake expert, changing the libldns
to ldns
with some sed magic fixed the issue for me:
sed -i 's/libldns/ldns/' CMakeLists.txt
ldns
is also the name of the package on Arch Linux, which provides the necessary include files, etc. so you probably want to add in some conditionals here to be more universal and not assume libdns
in all cases.