Closed sewenew closed 1 year ago
Could this be done with a hiredis version check instead of probing like this?
https://stackoverflow.com/a/34140313/2125392
It appears to me that hiredis
>= 1.2.0 has this feature.
Thanks for the suggestion! I'll try to take a look into it.
Regards
@sewenew Is there any resolution to the error mentioned above error of " hiredis::hiredis
but the target was not found." I'm running into similar issue.
@sewenew Is there any resolution to the error mentioned above error of " hiredis::hiredis
but the target was not found." I'm running into similar issue.
This means that cmake does not find the hiredis lib. Have you installed hiredis? If you installed it, you can use the -DCMAKE_PREFIX_PATH=/path/to/hiredis/installation/path to specify it.
Regards
CHECK_SYMBOL_EXISTS
here doesn't play well if includinghiredis
using CMake 3.24+ FetchContent's newOVERRIDE_FIND_PACKAGE
feature, to allow subsequentfind_package()
calls -- such as the one(s) done here in redis-plus-plus to find thehiredis
package -- to route through FetchContent rather than using the system install.