bakaid commented on a change in pull request #558: MINIFICPP-542 - Add PutSFTP
processor
URL: https://github.com/apache/nifi-minifi-cpp/pull/558#discussion_r285084803
##########
File path: cmake/libssh2/sys/FindLibSSH2.cmake
##########
@@ -0,0 +1,35 @@
+# - Try to find the libssh2 library
+# Once done this will define
+#
+# LIBSSH2_FOUND - system has the libssh2 library
+# LIBSSH2_INCLUDE_DIR - the libssh2 include directory
+# LIBSSH2_LIBRARY - the libssh2 library name
+
+if(LIBSSH2_INCLUDE_DIR AND LIBSSH2_LIBRARY)
+ set(LibSSH2_FIND_QUIETLY TRUE)
+endif()
+
+find_path(LIBSSH2_INCLUDE_DIR libssh2.h
+ )
+
+find_library(LIBSSH2_LIBRARY NAMES ssh2
+ )
+
+if(LIBSSH2_INCLUDE_DIR)
+ file(STRINGS "${LIBSSH2_INCLUDE_DIR}/libssh2.h" libssh2_version_str REGEX
"^#define[\t ]+LIBSSH2_VERSION_NUM[\t ]+0x[0-9][0-9][0-9][0-9][0-9][0-9].*")
+
+ string(REGEX REPLACE "^.*LIBSSH2_VERSION_NUM[\t ]+0x([0-9][0-9]).*$" "\\1"
LIBSSH2_VERSION_MAJOR "${libssh2_version_str}")
Review comment:
You're right, this was a thing I was going to ask about. This is from curl,
and we already mention we bundle curl in the LICENSE file. Should this module
be mentioned specifically somewhere?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services