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
c522bed0
Commit
c522bed0
authored
Apr 30, 2014
by
Vicent Marti
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2314 from libgit2/cmn/known-libs
Assorted CMake fixups
parents
739040e6
f5fc63bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
.travis.yml
+1
-1
CMakeLists.txt
+11
-11
No files found.
.travis.yml
View file @
c522bed0
...
...
@@ -19,7 +19,7 @@ matrix:
fast_finish
:
true
include
:
-
compiler
:
i586-mingw32msvc-gcc
env
:
OPTIONS="-DBUILD_CLAR=OFF -DWIN32=ON -DMINGW=ON"
env
:
OPTIONS="-DBUILD_CLAR=OFF -DWIN32=ON -DMINGW=ON
-DUSE_SSH=OFF
"
-
compiler
:
gcc
env
:
COVERITY=1
allow_failures
:
...
...
CMakeLists.txt
View file @
c522bed0
...
...
@@ -139,7 +139,7 @@ ELSE ()
FIND_PACKAGE
(
OpenSSL
)
ENDIF
()
FIND_PACKAGE
(
HTTP_Parser
QUIET
)
FIND_PACKAGE
(
HTTP_Parser
)
IF
(
HTTP_PARSER_FOUND AND HTTP_PARSER_VERSION_MAJOR EQUAL 2
)
INCLUDE_DIRECTORIES
(
${
HTTP_PARSER_INCLUDE_DIRS
}
)
LINK_LIBRARIES
(
${
HTTP_PARSER_LIBRARIES
}
)
...
...
@@ -157,7 +157,11 @@ IF (WIN32 AND NOT MINGW AND NOT SHA1_TYPE STREQUAL "builtin")
FILE
(
GLOB SRC_SHA1 src/hash/hash_win32.c
)
ELSEIF
(
OPENSSL_FOUND AND NOT SHA1_TYPE STREQUAL
"builtin"
)
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
()
FILE
(
GLOB SRC_SHA1 src/hash/hash_generic.c
)
ENDIF
()
...
...
@@ -174,19 +178,15 @@ IF(WIN32 OR AMIGA OR ANDROID)
ENDIF
()
# Optional external dependency: zlib
# It's optional, but FIND_PACKAGE gives a warning that looks more like an
# error.
FIND_PACKAGE
(
ZLIB QUIET
)
FIND_PACKAGE
(
ZLIB
)
IF
(
ZLIB_FOUND
)
INCLUDE_DIRECTORIES
(
${
ZLIB_INCLUDE_DIRS
}
)
LINK_LIBRARIES
(
${
ZLIB_LIBRARIES
}
)
IF
(
APPLE
)
IF
(
APPLE
OR CMAKE_SYSTEM_NAME MATCHES
"FreeBSD"
)
SET
(
LIBGIT2_PC_LIBS
"
${
LIBGIT2_PC_LIBS
}
-lz"
)
ELSE
()
SET
(
LIBGIT2_PC_REQUIRES
"
${
LIBGIT2_PC_REQUIRES
}
zlib"
)
ENDIF
()
# Fake the message CMake would have shown
MESSAGE
(
STATUS
"Found zlib:
${
ZLIB_LIBRARY
}
"
)
ELSE
()
MESSAGE
(
STATUS
"zlib was not found; using bundled 3rd-party sources."
)
INCLUDE_DIRECTORIES
(
deps/zlib
)
...
...
@@ -195,8 +195,8 @@ ELSE()
ENDIF
()
# Optional external dependency: libssh2
IF
(
USE_SSH
AND NOT MINGW
)
FIND_PACKAGE
(
LIBSSH2
QUIET
)
IF
(
USE_SSH
)
FIND_PACKAGE
(
LIBSSH2
)
ENDIF
()
IF
(
LIBSSH2_FOUND
)
ADD_DEFINITIONS
(
-DGIT_SSH
)
...
...
@@ -207,7 +207,7 @@ ENDIF()
# Optional external dependency: iconv
IF
(
USE_ICONV
)
FIND_PACKAGE
(
ICONV
QUIET
)
FIND_PACKAGE
(
ICONV
)
ENDIF
()
IF
(
ICONV_FOUND
)
ADD_DEFINITIONS
(
-DGIT_USE_ICONV
)
...
...
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