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
bd986b18
Commit
bd986b18
authored
Aug 08, 2022
by
Victor Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix EMBED_SSH_PATH
parent
22f38253
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
11 deletions
+4
-11
src/cli/CMakeLists.txt
+2
-1
src/libgit2/CMakeLists.txt
+2
-10
No files found.
src/cli/CMakeLists.txt
View file @
bd986b18
...
@@ -4,7 +4,8 @@ set(CLI_INCLUDES
...
@@ -4,7 +4,8 @@ set(CLI_INCLUDES
"
${
libgit2_BINARY_DIR
}
/include/git2"
"
${
libgit2_BINARY_DIR
}
/include/git2"
"
${
libgit2_SOURCE_DIR
}
/src/util"
"
${
libgit2_SOURCE_DIR
}
/src/util"
"
${
libgit2_SOURCE_DIR
}
/src/cli"
"
${
libgit2_SOURCE_DIR
}
/src/cli"
"
${
libgit2_SOURCE_DIR
}
/include"
)
"
${
libgit2_SOURCE_DIR
}
/include"
"
${
LIBGIT2_DEPENDENCY_INCLUDES
}
"
)
if
(
WIN32 AND NOT CYGWIN
)
if
(
WIN32 AND NOT CYGWIN
)
file
(
GLOB CLI_SRC_OS win32/*.c
)
file
(
GLOB CLI_SRC_OS win32/*.c
)
...
...
src/libgit2/CMakeLists.txt
View file @
bd986b18
...
@@ -15,16 +15,6 @@ set(LIBGIT2_INCLUDES
...
@@ -15,16 +15,6 @@ set(LIBGIT2_INCLUDES
"
${
PROJECT_SOURCE_DIR
}
/src/util"
"
${
PROJECT_SOURCE_DIR
}
/src/util"
"
${
PROJECT_SOURCE_DIR
}
/include"
)
"
${
PROJECT_SOURCE_DIR
}
/include"
)
if
(
WIN32 AND EMBED_SSH_PATH
)
file
(
GLOB SRC_SSH
"
${
EMBED_SSH_PATH
}
/src/*.c"
)
list
(
SORT SRC_SSH
)
target_sources
(
libgit2 PRIVATE
${
SRC_SSH
}
)
list
(
APPEND LIBGIT2_SYSTEM_INCLUDES
"
${
EMBED_SSH_PATH
}
/include"
)
file
(
WRITE
"
${
EMBED_SSH_PATH
}
/src/libssh2_config.h"
"#define HAVE_WINCNG
\n
#define LIBSSH2_WINCNG
\n
#include
\"
../win32/libssh2_config.h
\"
"
)
set
(
GIT_SSH 1
)
endif
()
# Collect sourcefiles
# Collect sourcefiles
file
(
GLOB SRC_H
file
(
GLOB SRC_H
"
${
PROJECT_SOURCE_DIR
}
/include/git2.h"
"
${
PROJECT_SOURCE_DIR
}
/include/git2.h"
...
@@ -69,6 +59,7 @@ endif()
...
@@ -69,6 +59,7 @@ endif()
ide_split_sources
(
libgit2
)
ide_split_sources
(
libgit2
)
list
(
APPEND LIBGIT2_OBJECTS $<TARGET_OBJECTS:util> $<TARGET_OBJECTS:libgit2>
${
LIBGIT2_DEPENDENCY_OBJECTS
}
)
list
(
APPEND LIBGIT2_OBJECTS $<TARGET_OBJECTS:util> $<TARGET_OBJECTS:libgit2>
${
LIBGIT2_DEPENDENCY_OBJECTS
}
)
list
(
APPEND LIBGIT2_INCLUDES
${
LIBGIT2_DEPENDENCY_INCLUDES
}
)
target_include_directories
(
libgit2 PRIVATE
${
LIBGIT2_INCLUDES
}
${
LIBGIT2_DEPENDENCY_INCLUDES
}
PUBLIC
${
PROJECT_SOURCE_DIR
}
/include
)
target_include_directories
(
libgit2 PRIVATE
${
LIBGIT2_INCLUDES
}
${
LIBGIT2_DEPENDENCY_INCLUDES
}
PUBLIC
${
PROJECT_SOURCE_DIR
}
/include
)
target_include_directories
(
libgit2 SYSTEM PRIVATE
${
LIBGIT2_SYSTEM_INCLUDES
}
)
target_include_directories
(
libgit2 SYSTEM PRIVATE
${
LIBGIT2_SYSTEM_INCLUDES
}
)
...
@@ -86,6 +77,7 @@ set(LIBGIT2_SYSTEM_LIBS ${LIBGIT2_SYSTEM_LIBS} PARENT_SCOPE)
...
@@ -86,6 +77,7 @@ set(LIBGIT2_SYSTEM_LIBS ${LIBGIT2_SYSTEM_LIBS} PARENT_SCOPE)
add_library
(
libgit2package
${
SRC_RC
}
${
LIBGIT2_OBJECTS
}
)
add_library
(
libgit2package
${
SRC_RC
}
${
LIBGIT2_OBJECTS
}
)
target_link_libraries
(
libgit2package
${
LIBGIT2_SYSTEM_LIBS
}
)
target_link_libraries
(
libgit2package
${
LIBGIT2_SYSTEM_LIBS
}
)
target_include_directories
(
libgit2package SYSTEM PRIVATE
${
LIBGIT2_INCLUDES
}
)
set_target_properties
(
libgit2package PROPERTIES C_STANDARD 90
)
set_target_properties
(
libgit2package PROPERTIES C_STANDARD 90
)
set_target_properties
(
libgit2package PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
PROJECT_BINARY_DIR
}
)
set_target_properties
(
libgit2package PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
PROJECT_BINARY_DIR
}
)
...
...
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