Skip to content

Commit 4061111

Browse files
authored
Merge pull request #924 from a17r/0.27-use-libssh-config
0.27: use libssh-config instead of custom FindSSH.cmake
2 parents 786b18b + df5054b commit 4061111

File tree

3 files changed

+3
-34
lines changed

3 files changed

+3
-34
lines changed

cmake/FindSSH.cmake

Lines changed: 0 additions & 31 deletions
This file was deleted.

cmake/findDependencies.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if( EXIV2_ENABLE_WEBREADY )
2020
endif()
2121

2222
if( EXIV2_ENABLE_SSH )
23-
find_package( SSH REQUIRED)
23+
find_package(libssh CONFIG REQUIRED)
2424
endif( )
2525
endif( )
2626

src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ target_include_directories(exiv2lib_int PUBLIC
174174
if (EXIV2_ENABLE_WEBREADY)
175175

176176
if( EXIV2_ENABLE_SSH )
177-
target_include_directories(exiv2lib SYSTEM PUBLIC ${SSH_INCLUDE_DIR} )
178-
target_link_libraries( exiv2lib PUBLIC ${SSH_LIBRARIES})
177+
target_include_directories(exiv2lib SYSTEM PUBLIC ${LIBSSH_INCLUDE_DIR})
178+
target_link_libraries(exiv2lib PUBLIC ${LIBSSH_LIBRARIES})
179179
endif()
180180

181181
if( EXIV2_ENABLE_CURL )

0 commit comments

Comments
 (0)