CMake before version 3.15 does not support creating an ALIAS library for a library of UNKNOWN type via its command add_library().
Due to other fixes we can now skip the alias step (hiredis -> hiredis:hiredis) when importing an already installed hiredis library and give it correct name directly in our CMakeLists.txt.
The created hiredis:hiredis library reference is required by CMake to be able to build hiredis-cluster.
hiredis::hiredis_ssl is handled in the same fashion.
CMake before version 3.15 does not support creating an
ALIAS
library for a library ofUNKNOWN
type via its commandadd_library()
. Due to other fixes we can now skip the alias step (hiredis
->hiredis:hiredis
) when importing an already installedhiredis
library and give it correct name directly in our CMakeLists.txt. The createdhiredis:hiredis
library reference is required by CMake to be able to buildhiredis-cluster
.hiredis::hiredis_ssl
is handled in the same fashion.Fixes #173