Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
403e1800
Commit
403e1800
authored
Sep 18, 2015
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3418 from DimStar77/master
pkg-config: fix directory references in libgit2.pc
parents
8d6052df
5540d9db
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
CMakeLists.txt
+17
-0
libgit2.pc.in
+3
-2
No files found.
CMakeLists.txt
View file @
403e1800
...
...
@@ -99,6 +99,23 @@ SET(BIN_INSTALL_DIR bin CACHE PATH "Where to install binaries to.")
SET
(
LIB_INSTALL_DIR lib CACHE PATH
"Where to install libraries to."
)
SET
(
INCLUDE_INSTALL_DIR include CACHE PATH
"Where to install headers to."
)
# Set a couple variables to be substituted inside the .pc file.
# We can't just use LIB_INSTALL_DIR in the .pc file, as passing them as absolue
# or relative paths is both valid and supported by cmake.
SET
(
PKGCONFIG_PREFIX
${
CMAKE_INSTALL_PREFIX
}
)
IF
(
IS_ABSOLUTE
${
LIB_INSTALL_DIR
}
)
SET
(
PKGCONFIG_LIBDIR
${
LIB_INSTALL_DIR
}
)
ELSE
(
IS_ABSOLUTE
${
LIB_INSTALL_DIR
}
)
SET
(
PKGCONFIG_LIBDIR
"
\$
{prefix}/
${
LIB_INSTALL_DIR
}
"
)
ENDIF
(
IS_ABSOLUTE
${
LIB_INSTALL_DIR
}
)
IF
(
IS_ABSOLUTE
${
INCLUDE_INSTALL_DIR
}
)
SET
(
PKGCONFIG_INCLUDEDIR
${
INCLUDE_INSTALL_DIR
}
)
ELSE
(
IS_ABSOLUTE
${
INCLUDE_INSTALL_DIR
}
)
SET
(
PKGCONFIG_INCLUDEDIR
"
\$
{prefix}/
${
INCLUDE_INSTALL_DIR
}
"
)
ENDIF
(
IS_ABSOLUTE
${
INCLUDE_INSTALL_DIR
}
)
FUNCTION
(
TARGET_OS_LIBRARIES target
)
IF
(
WIN32
)
TARGET_LINK_LIBRARIES
(
${
target
}
ws2_32
)
...
...
libgit2.pc.in
View file @
403e1800
libdir=@CMAKE_INSTALL_PREFIX@/@LIB_INSTALL_DIR@
includedir=@CMAKE_INSTALL_PREFIX@/@INCLUDE_INSTALL_DIR@
prefix=@PKGCONFIG_PREFIX@
libdir=@PKGCONFIG_LIBDIR@
includedir=@PKGCONFIG_INCLUDEDIR@
Name: libgit2
Description: The git library, take 2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment