Fix installation of libgit2 into wrong libdir (#624)

Upstream libgit2 has migrated to use the GNUInstallDirs module to decide
where things will be installed to by default. While it improves
consistency with the host system, we're not really after that when
building the vendored libgit2 library, and in fact libgit2.{a,pc} may
now be installed into a different directory than before as it started to
depend on the host platform.

Fix this by explicitly specifying that we want the library and pkgconfig
file to be installed into a plain "lib/" directory.
This commit is contained in:
Patrick Steinhardt 2020-07-25 22:08:04 +02:00 committed by GitHub
parent b1cad11555
commit d8f9990d4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ cmake -DTHREADSAFE=ON \
-DCMAKE_C_FLAGS=-fPIC \
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
-DCMAKE_INSTALL_PREFIX="${BUILD_PATH}/install" \
-DCMAKE_INSTALL_LIBDIR="lib" \
"${VENDORED_PATH}" &&
exec cmake --build . --target install