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
62d66a4a
Commit
62d66a4a
authored
Dec 22, 2014
by
Edward Thomson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2745 from libgit2/cmn/pkg-config-ssh
Find libssh2 via pkg-config
parents
d147900e
4f91bfa3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
45 deletions
+1
-45
CMakeLists.txt
+1
-1
cmake/Modules/FindLIBSSH2.cmake
+0
-44
No files found.
CMakeLists.txt
View file @
62d66a4a
...
...
@@ -212,7 +212,7 @@ ENDIF()
# Optional external dependency: libssh2
IF
(
USE_SSH
)
FIND_PACKAGE
(
LIBSSH
2
)
PKG_CHECK_MODULES
(
LIBSSH2 libssh
2
)
ENDIF
()
IF
(
LIBSSH2_FOUND
)
ADD_DEFINITIONS
(
-DGIT_SSH
)
...
...
cmake/Modules/FindLIBSSH2.cmake
deleted
100644 → 0
View file @
d147900e
if
(
LIBSSH2_LIBRARIES AND LIBSSH2_INCLUDE_DIRS
)
set
(
LIBSSH2_FOUND TRUE
)
else
(
LIBSSH2_LIBRARIES AND LIBSSH2_INCLUDE_DIRS
)
find_path
(
LIBSSH2_INCLUDE_DIR
NAMES
libssh2.h
PATHS
/usr/include
/usr/local/include
/opt/local/include
/sw/include
${
CMAKE_INCLUDE_PATH
}
${
CMAKE_INSTALL_PREFIX
}
/include
)
find_library
(
LIBSSH2_LIBRARY
NAMES
ssh2
libssh2
PATHS
/usr/lib
/usr/local/lib
/opt/local/lib
/sw/lib
${
CMAKE_LIBRARY_PATH
}
${
CMAKE_INSTALL_PREFIX
}
/lib
)
if
(
LIBSSH2_INCLUDE_DIR AND LIBSSH2_LIBRARY
)
set
(
LIBSSH2_FOUND TRUE
)
endif
(
LIBSSH2_INCLUDE_DIR AND LIBSSH2_LIBRARY
)
if
(
LIBSSH2_FOUND
)
set
(
LIBSSH2_INCLUDE_DIRS
${
LIBSSH2_INCLUDE_DIR
}
)
set
(
LIBSSH2_LIBRARIES
${
LIBSSH2_LIBRARIES
}
${
LIBSSH2_LIBRARY
}
)
endif
(
LIBSSH2_FOUND
)
endif
(
LIBSSH2_LIBRARIES AND LIBSSH2_INCLUDE_DIRS
)
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