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
096ac799
Commit
096ac799
authored
Feb 13, 2014
by
Ting-Wei Lan
Committed by
Carlos Martín Nieto
Apr 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround missing .pc files on FreeBSD
This fixes #2118
parent
04739e9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
CMakeLists.txt
+6
-2
No files found.
CMakeLists.txt
View file @
096ac799
...
@@ -157,7 +157,11 @@ IF (WIN32 AND NOT MINGW AND NOT SHA1_TYPE STREQUAL "builtin")
...
@@ -157,7 +157,11 @@ IF (WIN32 AND NOT MINGW AND NOT SHA1_TYPE STREQUAL "builtin")
FILE
(
GLOB SRC_SHA1 src/hash/hash_win32.c
)
FILE
(
GLOB SRC_SHA1 src/hash/hash_win32.c
)
ELSEIF
(
OPENSSL_FOUND AND NOT SHA1_TYPE STREQUAL
"builtin"
)
ELSEIF
(
OPENSSL_FOUND AND NOT SHA1_TYPE STREQUAL
"builtin"
)
ADD_DEFINITIONS
(
-DOPENSSL_SHA1
)
ADD_DEFINITIONS
(
-DOPENSSL_SHA1
)
SET
(
LIBGIT2_PC_REQUIRES
"
${
LIBGIT2_PC_REQUIRES
}
openssl"
)
IF
(
CMAKE_SYSTEM_NAME MATCHES
"FreeBSD"
)
SET
(
LIBGIT2_PC_LIBS
"
${
LIBGIT2_PC_LIBS
}
-lssl"
)
ELSE
()
SET
(
LIBGIT2_PC_REQUIRES
"
${
LIBGIT2_PC_REQUIRES
}
openssl"
)
ENDIF
()
ELSE
()
ELSE
()
FILE
(
GLOB SRC_SHA1 src/hash/hash_generic.c
)
FILE
(
GLOB SRC_SHA1 src/hash/hash_generic.c
)
ENDIF
()
ENDIF
()
...
@@ -178,7 +182,7 @@ FIND_PACKAGE(ZLIB)
...
@@ -178,7 +182,7 @@ FIND_PACKAGE(ZLIB)
IF
(
ZLIB_FOUND
)
IF
(
ZLIB_FOUND
)
INCLUDE_DIRECTORIES
(
${
ZLIB_INCLUDE_DIRS
}
)
INCLUDE_DIRECTORIES
(
${
ZLIB_INCLUDE_DIRS
}
)
LINK_LIBRARIES
(
${
ZLIB_LIBRARIES
}
)
LINK_LIBRARIES
(
${
ZLIB_LIBRARIES
}
)
IF
(
APPLE
)
IF
(
APPLE
OR CMAKE_SYSTEM_NAME MATCHES
"FreeBSD"
)
SET
(
LIBGIT2_PC_LIBS
"
${
LIBGIT2_PC_LIBS
}
-lz"
)
SET
(
LIBGIT2_PC_LIBS
"
${
LIBGIT2_PC_LIBS
}
-lz"
)
ELSE
()
ELSE
()
SET
(
LIBGIT2_PC_REQUIRES
"
${
LIBGIT2_PC_REQUIRES
}
zlib"
)
SET
(
LIBGIT2_PC_REQUIRES
"
${
LIBGIT2_PC_REQUIRES
}
zlib"
)
...
...
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