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
1679ec12
Commit
1679ec12
authored
May 24, 2015
by
Michał Górny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: Add CMake check for libssh2 memory credential passing support
parent
08e6b875
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
CMakeLists.txt
+5
-0
No files found.
CMakeLists.txt
View file @
1679ec12
...
...
@@ -270,6 +270,11 @@ IF (LIBSSH2_FOUND)
LINK_DIRECTORIES
(
${
LIBSSH2_LIBRARY_DIRS
}
)
SET
(
LIBGIT2_PC_REQUIRES
"
${
LIBGIT2_PC_REQUIRES
}
libssh2"
)
SET
(
SSH_LIBRARIES
${
LIBSSH2_LIBRARIES
}
)
CHECK_LIBRARY_EXISTS
(
${
LIBSSH2_LIBRARIES
}
libssh2_userauth_publickey_frommemory
""
HAVE_LIBSSH2_MEMORY_CREDENTIALS
)
IF
(
HAVE_LIBSSH2_MEMORY_CREDENTIALS
)
ADD_DEFINITIONS
(
-DGIT_SSH_MEMORY_CREDENTIALS
)
ENDIF
()
ELSE
()
MESSAGE
(
STATUS
"LIBSSH2 not found. Set CMAKE_PREFIX_PATH if it is installed outside of the default search path."
)
ENDIF
()
...
...
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