Closed abhinavbansal19961996 closed 10 months ago
After some investigations I can see your error when using an older CMake version (<3.15). The issue can only be seen when one build+install hiredis using Make directly and then build hiredis-cluster using CMake.
CMake 3.15 added the functionality that we use for this case:
The add_library() command ALIAS option learned to support import libraries of the UNKNOWN type.
I'll see if we can handle it differently in our CMakeLists (or add some new build error printouts about how to proceed).
Getting below error:
Note that i am cloning hiredis library seperately. When i removed above lines and replaced hiredis::hiredis with hiredis. It succeeded.