Merge pull request #4356 from pks-t/pks/static-clar cmake: use static dependencies when building static libgit2