Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cpprest_find_openssl.cmake broken - fix #1521
Comments
|
@barcharcraz ping? |
Current
cpprest_find_openssl.cmakeis broken on MacOS for anything but Homebrew (which is the least secure way to install packages).So, while it correctly locates the installed OpenSSL, it still fails to correctly link with it, failing to pass the
-Lxxxxxflag to the linker.This patch fixes that problem:
Coincidentally, MacOS (thankfully!) does not include OpenSSL-0.9.8 anymore. Unfortunately, it includes LibreSSL, whose libraries one cannot link against:
Thus, there's no risk that
pkg-configwould find system-provided OpenSSL on MacOS - it's not even listed in/usr/lib/pkgconfig/.This issue relates to - aka provides the fix for - #1518.
Update
I suspect that the critical change is this:
but I haven't tested it with only this change.