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
c963fe1d
Commit
c963fe1d
authored
Jun 23, 2015
by
Axel Rasmussen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: fix CMake code organization problem
parent
e9e6df2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
CMakeLists.txt
+6
-6
No files found.
CMakeLists.txt
View file @
c963fe1d
...
...
@@ -23,9 +23,6 @@ INCLUDE(CheckStructHasMember)
INCLUDE
(
AddCFlagIfSupported
)
INCLUDE
(
FindPkgConfig
)
CHECK_STRUCT_HAS_MEMBER
(
"struct stat"
st_mtim.tv_nsec sys/stat.h
HAVE_STRUCT_STAT_NSEC LANGUAGE C
)
# Build options
#
OPTION
(
SONAME
"Set the (SO)VERSION of the target"
ON
)
...
...
@@ -41,9 +38,6 @@ OPTION( LIBGIT2_FILENAME "Name of the produced binary" OFF )
OPTION
(
USE_ICONV
"Link with and use iconv library"
OFF
)
OPTION
(
USE_SSH
"Link with libssh to enable SSH support"
ON
)
OPTION
(
USE_GSSAPI
"Link with libgssapi for SPNEGO auth"
OFF
)
IF
(
HAVE_STRUCT_STAT_NSEC
)
OPTION
(
USE_NSEC
"Care about sub-second file mtimes and ctimes"
OFF
)
ENDIF
()
OPTION
(
VALGRIND
"Configure build for valgrind"
OFF
)
OPTION
(
CURL
"User curl for HTTP if available"
ON
)
...
...
@@ -91,6 +85,12 @@ IF (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
OPTION
(
USE_OPENSSL
"Link with and use openssl library"
ON
)
ENDIF
()
CHECK_STRUCT_HAS_MEMBER
(
"struct stat"
st_mtim.tv_nsec sys/stat.h
HAVE_STRUCT_STAT_NSEC LANGUAGE C
)
IF
(
HAVE_STRUCT_STAT_NSEC
)
OPTION
(
USE_NSEC
"Care about sub-second file mtimes and ctimes"
OFF
)
ENDIF
()
# This variable will contain the libraries we need to put into
# libgit2.pc's Requires.private. That is, what we're linking to or
# what someone who's statically linking us needs to link to.
...
...
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