mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-03 07:44:49 +00:00
Create and install pkg-config file
This hasn't been working since the switch away from waf. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
This commit is contained in:
parent
a655cc3571
commit
2327a7cc10
@ -99,6 +99,7 @@ ENDIF ()
|
|||||||
TARGET_LINK_LIBRARIES(git2 ${CMAKE_THREAD_LIBS_INIT})
|
TARGET_LINK_LIBRARIES(git2 ${CMAKE_THREAD_LIBS_INIT})
|
||||||
SET_TARGET_PROPERTIES(git2 PROPERTIES VERSION ${LIBGIT2_VERSION_STRING})
|
SET_TARGET_PROPERTIES(git2 PROPERTIES VERSION ${LIBGIT2_VERSION_STRING})
|
||||||
SET_TARGET_PROPERTIES(git2 PROPERTIES SOVERSION ${LIBGIT2_VERSION_MAJOR})
|
SET_TARGET_PROPERTIES(git2 PROPERTIES SOVERSION ${LIBGIT2_VERSION_MAJOR})
|
||||||
|
CONFIGURE_FILE(libgit2.pc.in libgit2.pc)
|
||||||
|
|
||||||
# Install
|
# Install
|
||||||
INSTALL(TARGETS git2
|
INSTALL(TARGETS git2
|
||||||
@ -106,6 +107,7 @@ INSTALL(TARGETS git2
|
|||||||
LIBRARY DESTINATION ${INSTALL_LIB}
|
LIBRARY DESTINATION ${INSTALL_LIB}
|
||||||
ARCHIVE DESTINATION ${INSTALL_LIB}
|
ARCHIVE DESTINATION ${INSTALL_LIB}
|
||||||
)
|
)
|
||||||
|
INSTALL(FILES libgit2.pc DESTINATION ${INSTALL_LIB}/pkgconfig )
|
||||||
INSTALL(DIRECTORY include/git2 DESTINATION ${INSTALL_INC} )
|
INSTALL(DIRECTORY include/git2 DESTINATION ${INSTALL_INC} )
|
||||||
INSTALL(FILES include/git2.h DESTINATION ${INSTALL_INC} )
|
INSTALL(FILES include/git2.h DESTINATION ${INSTALL_INC} )
|
||||||
|
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
prefix=@prefix@
|
libdir=@CMAKE_INSTALL_PREFIX@/@INSTALL_LIB@
|
||||||
exec_prefix=${prefix}
|
includedir=@CMAKE_INSTALL_PREFIX@/@INSTALL_INC@
|
||||||
libdir=@libdir@
|
|
||||||
includedir=${prefix}/include
|
|
||||||
|
|
||||||
Name: libgit2
|
Name: libgit2
|
||||||
Description: The git library, take 2
|
Description: The git library, take 2
|
||||||
Version: @version@
|
Version: @LIBGIT2_VERSION_STRING@
|
||||||
Requires: libcrypto
|
Requires: libcrypto
|
||||||
Libs: -L${libdir} -lgit2 -lz -lcrypto
|
Libs: -L${libdir} -lgit2 -lz -lcrypto
|
||||||
Cflags: -I${includedir}
|
Cflags: -I${includedir}
|
||||||
|
Loading…
Reference in New Issue
Block a user