Commit 413bfb83b2dfde9482a756fbcd1d5f5ba9315696

Laurent Stacul 2021-09-14T13:53:29

Update src/CMakeLists.txt Co-authored-by: Edward Thomson <ethomson@github.com>

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c3029a9..fdb3673 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -232,13 +232,13 @@ ENDIF()
 # Optional external dependency: libssh2
 IF (USE_SSH)
 	FIND_PKGLIBRARIES(LIBSSH2 libssh2)
-    IF (NOT LIBSSH2_FOUND)
-        FIND_PACKAGE(LibSSH2)
-        SET(LIBSSH2_INCLUDE_DIRS ${LIBSSH2_INCLUDE_DIR})
-        GET_FILENAME_COMPONENT(LIBSSH2_LIBRARY_DIRS "${LIBSSH2_LIBRARY}" DIRECTORY)
-        SET(LIBSSH2_LIBRARIES ${LIBSSH2_LIBRARY})
-        SET(LIBSSH2_LDFLAGS "-lssh2")
-    ENDIF()
+	IF (NOT LIBSSH2_FOUND)
+		FIND_PACKAGE(LibSSH2)
+		SET(LIBSSH2_INCLUDE_DIRS ${LIBSSH2_INCLUDE_DIR})
+		GET_FILENAME_COMPONENT(LIBSSH2_LIBRARY_DIRS "${LIBSSH2_LIBRARY}" DIRECTORY)
+		SET(LIBSSH2_LIBRARIES ${LIBSSH2_LIBRARY})
+		SET(LIBSSH2_LDFLAGS "-lssh2")
+	ENDIF()
 ENDIF()
 IF (LIBSSH2_FOUND)
 	SET(GIT_SSH 1)