-
Notifications
You must be signed in to change notification settings - Fork 2.5k
CMake: Search for ssh2 instead of libssh2. #6586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Fixes "CMake Error: could not resolve ssh2" on Windows-MSVC.
Thanks! |
This has created the converse problem for me on msys2:
|
@jeroen which OS are you on? Which cmake version? I had tested this on Windows/Linux/macOS and it was working :( . Though it was using the static library on Linux (not the system shared one). Did reverting the change fix the problem for you? |
This is an msys2 based build on Windows, but as far as I can tell, the pkg-config file is called For example on mac:
The problem will go unnoticed on most platforms because cmake can guess Reverting this PR indeed fixes my issue. |
Well, it didn't work on Windows+MSVC (see the linked issue above). But I guess this should be reverted then, and the issue re-opened? Will need someone with better CMake knowledge then me to fix :( . |
Dit it actually solve anything for you? In that case maybe you should special case on MSVC. I have never used MSVC so I don't know if it is different from other platforms. |
OK I think I see the problem. I'll send a PR. |
Yes it did solve my issue (which is how I found #5981 and proposed this solution)
Thanks 🏅 |
OK I have sent the PR ==> #6602 |
I'm going to temporarily revert this one so that we can get v1.7.1 out the door while #6602 is being reviewed. |
Fixes "CMake Error: could not resolve ssh2" on Windows-MSVC.
Fixes #5981