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
521479b1
Commit
521479b1
authored
Dec 18, 2012
by
Sascha Cunz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DRY: Don't repeat globs for libgit2's own source files
parent
c5309eb2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
CMakeLists.txt
+7
-6
No files found.
CMakeLists.txt
View file @
521479b1
...
@@ -149,16 +149,17 @@ FILE(GLOB SRC_H include/git2/*.h)
...
@@ -149,16 +149,17 @@ FILE(GLOB SRC_H include/git2/*.h)
# On Windows use specific platform sources
# On Windows use specific platform sources
IF
(
WIN32 AND NOT CYGWIN
)
IF
(
WIN32 AND NOT CYGWIN
)
ADD_DEFINITIONS
(
-DWIN32 -D_DEBUG -D_WIN32_WINNT=0x0501
)
ADD_DEFINITIONS
(
-DWIN32 -D_DEBUG -D_WIN32_WINNT=0x0501
)
FILE
(
GLOB SRC
src/*.c src/transports/*.c src/xdiff/*.c
src/win32/*.c
)
FILE
(
GLOB SRC
_OS
src/win32/*.c
)
ELSEIF
(
AMIGA
)
ELSEIF
(
AMIGA
)
ADD_DEFINITIONS
(
-DNO_ADDRINFO -DNO_READDIR_R
)
ADD_DEFINITIONS
(
-DNO_ADDRINFO -DNO_READDIR_R
)
FILE
(
GLOB SRC
src/*.c src/transports/*.c src/xdiff/*.c
src/amiga/*.c
)
FILE
(
GLOB SRC
_OS
src/amiga/*.c
)
ELSE
()
ELSE
()
FILE
(
GLOB SRC src/*.c src/transports/*.c src/xdiff/*.c src/unix/*.c
)
FILE
(
GLOB SRC_OS src/unix/*.c
)
ENDIF
()
ENDIF
()
FILE
(
GLOB SRC_GIT2 src/*.c src/transports/*.c src/xdiff/*.c
)
# Compile and link libgit2
# Compile and link libgit2
ADD_LIBRARY
(
git2
${
SRC
}
${
SRC_ZLIB
}
${
SRC_HTTP
}
${
SRC_REGEX
}
${
SRC_SHA1
}
${
WIN_RC
}
)
ADD_LIBRARY
(
git2
${
SRC
_GIT2
}
${
SRC_OS
}
${
SRC_ZLIB
}
${
SRC_HTTP
}
${
SRC_REGEX
}
${
SRC_SHA1
}
${
WIN_RC
}
)
IF
(
WIN32
)
IF
(
WIN32
)
TARGET_LINK_LIBRARIES
(
git2 ws2_32
)
TARGET_LINK_LIBRARIES
(
git2 ws2_32
)
...
@@ -207,7 +208,7 @@ IF (BUILD_CLAR)
...
@@ -207,7 +208,7 @@ IF (BUILD_CLAR)
DEPENDS
${
CLAR_PATH
}
/clar
${
SRC_TEST
}
DEPENDS
${
CLAR_PATH
}
/clar
${
SRC_TEST
}
WORKING_DIRECTORY
${
CLAR_PATH
}
WORKING_DIRECTORY
${
CLAR_PATH
}
)
)
ADD_EXECUTABLE(libgit2_clar
${
SRC
}
${
CLAR_PATH
}
/clar_main.c
${
SRC_TEST
}
${
SRC_ZLIB
}
${
SRC_HTTP
}
${
SRC_REGEX
}
${
SRC_SHA1
}
)
ADD_EXECUTABLE(libgit2_clar
${
SRC
_GIT2
}
${
SRC_OS
}
${
CLAR_PATH
}
/clar_main.c
${
SRC_TEST
}
${
SRC_ZLIB
}
${
SRC_HTTP
}
${
SRC_REGEX
}
${
SRC_SHA1
}
)
TARGET_LINK_LIBRARIES(libgit2_clar
${
CMAKE_THREAD_LIBS_INIT
}
${
SSL_LIBRARIES
}
)
TARGET_LINK_LIBRARIES(libgit2_clar
${
CMAKE_THREAD_LIBS_INIT
}
${
SSL_LIBRARIES
}
)
IF (MSVC_IDE)
IF (MSVC_IDE)
...
...
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