-- Could NOT find Nettle: Found unsuitable version ".", but required is at least "3.0" (found /usr/lib64/libnettle.so) -- Found GnuTLS: /usr/lib64/libgnutls.so (found version "3.8.8") CMake Warning at CMakeLists.txt:277 (message): -- neither Common Crypto, GnuTLS, mbed TLS, OpenSSL, nor Windows Cryptography found; AES support disabled Gentoo's rewriting of /usr/include/nettle/version.h causes libzip to fail to find the Nettle version. Patch submitted upstream: https://github.com/nih-at/libzip/pull/486
Thanks. Even better would be to prefer pkg_check_modules.