<div dir="ltr">Hello,<div><br></div><div>I am working on adding libssh2 support into cmake (specifically the curl code). Most of the ground work was previously done so most of what I had to use was add cmake support. I'm having some issues still.</div><div><br></div><div>So, I've added the option for libssh2, its find_package call, and defined the options in Utilities/cmcurl/<a href="http://config.h.in">config.h.in</a> for libssh2.</div><div><br></div><div>When try a simple test (cmake -P)</div><div><div>file(WRITE  upload.txt "testing upload")</div><div>file(UPLOAD upload.txt "sftp://username:pw@url:path/to/home/" STATUS status SHOW_PROGRESS)</div><div>message(STATUS "STATUS ${status}")</div></div><div><br></div><div>I get:</div><div>-- STATUS 6;"couldn't resolve host name"</div><div>or (If I drop the path):</div><div>-- STATUS 2;"failed init"<br></div><div><br></div><div>I cannot be sure if this is a parsing problem or some other problem.  Using --debug-output doesn't give me anything additional and I don't know where this error is being thrown.  Is there an easy way to get more info than this?  I've tried adding some printfs to print the hostname, but they don't seem to be displayed (or maybe I haven't found the correct location of where its thrown).</div><div><br></div><div><br></div><div>The only non cmake change I made was a function name change for libssh2_free to libssh2_free2 in ssh.c. The current code defines this function for the LIBSSH2_FREE_FUNC callback but this function is already defined in libssh2.h (I am using version 1.4.3).  I renamed this function in the cmake code to libssh2_free2 so the symbols would not clash. </div><div>Anyway, I attached the git patch so people can take a look. There may be a few debug messages in there which would be removed before submission.<br></div><div><br></div><div>-Jameson</div><div><br></div><div><br></div></div>