Skip to content
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

cmake: with OpenSSL, define OPENSSL_SUPPRESS_DEPRECATED #7767

Closed
wants to merge 2 commits into from

Conversation

bagder
Copy link
Member

@bagder bagder commented Sep 23, 2021

To avoid the "... is deprecated" warnings brought by OpenSSL v3.
(We need to address the underlying code at some point of course.)

To avoid the "... is deprecated" warnings brought by OpenSSL v3.
(We need to address the underlying code at some point of course.)
@bagder bagder force-pushed the bagder/cmake-openssl3-deprecated branch from 7990560 to fa10731 Compare September 23, 2021 12:42
@bagder
Copy link
Member Author

bagder commented Sep 23, 2021

I don't get it. How do I add that define to the compiler flags in cmake?

Also, how do I tell cmake to build with openssl installed in a custom path?

@jzakrzewski
Copy link
Contributor

There are better ways nowadays, but you probably want: https://cmake.org/cmake/help/v3.8/command/add_definitions.html

@bagder
Copy link
Member Author

bagder commented Sep 23, 2021

That seems to have worked, thanks!

@bagder bagder closed this in 3455d29 Sep 23, 2021
@bagder bagder deleted the bagder/cmake-openssl3-deprecated branch September 23, 2021 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants