sewenew / redis-plus-plus

Redis client written in C++
Apache License 2.0
1.64k stars 351 forks source link

Getting CMake Error for HIREDIS_TLS_LIB #440

Closed narendra-hn-by closed 1 year ago

narendra-hn-by commented 1 year ago

Describe the problem

Getting the following error while trying to build using CMake: CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: HIREDIS_TLS_LIB linked by target "redis++" in directory /redis-plus-plus-1.3.7 TEST_HIREDIS_TLS_LIB linked by target "test_redis++" in directory /redis-plus-plus-1.3.7/test

Environment:

How to fix this?

narendra-hn-by commented 1 year ago

had to use USE_SSL=1 during make install of hiredis.

mankouzhuya commented 1 year ago

I got the same trouble

sewenew commented 1 year ago

@mankouzhuya You need to enable TLS support for hiredis installation, then build redis-plus-plus with TLS support. Check the doc for detail.

Regards