diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-08-07 18:44:08 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-08-07 18:44:08 +0200 |
| commit | 2327a7cc100e38d176fe48dc3a2bf50045890be8 (patch) | |
| tree | cc6e5f5b257b3f288276f45d729d2095ead6dd81 /CMakeLists.txt | |
| parent | a655cc3571206957991420089dc038bc5a04349b (diff) | |
| download | libgit2-2327a7cc100e38d176fe48dc3a2bf50045890be8.tar.gz | |
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>
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index cb938521..cc77f7b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,6 +99,7 @@ ENDIF () TARGET_LINK_LIBRARIES(git2 ${CMAKE_THREAD_LIBS_INIT}) SET_TARGET_PROPERTIES(git2 PROPERTIES VERSION ${LIBGIT2_VERSION_STRING}) SET_TARGET_PROPERTIES(git2 PROPERTIES SOVERSION ${LIBGIT2_VERSION_MAJOR}) +CONFIGURE_FILE(libgit2.pc.in libgit2.pc) # Install INSTALL(TARGETS git2 @@ -106,6 +107,7 @@ INSTALL(TARGETS git2 LIBRARY DESTINATION ${INSTALL_LIB} ARCHIVE DESTINATION ${INSTALL_LIB} ) +INSTALL(FILES libgit2.pc DESTINATION ${INSTALL_LIB}/pkgconfig ) INSTALL(DIRECTORY include/git2 DESTINATION ${INSTALL_INC} ) INSTALL(FILES include/git2.h DESTINATION ${INSTALL_INC} ) |
