When building dlib without static-libs, it generates a faulty cmake export file meaning users can't use 'find_package` to detect and used the built shared libs. Fixing this is easy, simply create add `-DBUILD_SHARD_LIBS=ON` to the cmake arguments when building dlib when not using the static-libs use-flag.
There is a patch availible on github pull request #14570
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11546b57ee1c41f66f6e87a591d78356402f46e8 commit 11546b57ee1c41f66f6e87a591d78356402f46e8 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2020-06-05 21:46:17 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2020-06-05 22:36:02 +0000 sci-libs/dlib: EAPI-7 bump, cmake.eclass, drop IUSE="static-libs" EAPI-7 gives us BUILD_SHARED_LIBS=ON by default. Closes: https://bugs.gentoo.org/725466 Closes: https://bugs.gentoo.org/708330 Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> sci-libs/dlib/dlib-19.16-r1.ebuild | 106 +++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+)