Skip to content

hiredis_ssl missing #1203

Answered by michael-grunder
mike1821 asked this question in Q&A
Jul 3, 2023 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Aha!

If you're using CMake to build hiredis you would do it slightly differently.

CMakeLists.txt defines these options:

OPTION(BUILD_SHARED_LIBS "Build shared libraries" ON)
OPTION(ENABLE_SSL "Build hiredis_ssl for SSL support" OFF)
OPTION(DISABLE_TESTS "If tests should be compiled or not" OFF)
OPTION(ENABLE_SSL_TESTS "Should we test SSL connections" OFF)
OPTION(ENABLE_EXAMPLES "Enable building hiredis examples" OFF)
OPTION(ENABLE_ASYNC_TESTS "Should we run all asynchronous API tests" OFF)

So to build with SSL enabled you would so something like this:

$ cmake .. -DENABLE_SSL=ON
$ make

You can similarly enable/disable the other defined options by passing -D<option_name>=<ON/OFF>.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@mike1821
Comment options

Comment options

You must be logged in to vote
1 reply
@mike1821
Comment options

Answer selected by mike1821
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants