Additionally, this PR fixes a problem that CMake's find_package() don't understand which version that is used when the build downloads the hiredis package using FetchContent. This is fixed by creating a version file stub containing the package version.
This fixes a problem seen in PR #150, a testcase that should be run when using hiredis 1.0.1 will not run even when the build downloads hiredis 1.0.1.
The version file for the CMake package enables users to ask for a specific version like:
find_package(hiredis_cluster 0.10.1 REQUIRED)
which will find and accept all
0.10.x
versions but not0.11.0
(using CMakePackageConfigHelpers).Additionally, this PR fixes a problem that CMake's
find_package()
don't understand which version that is used when the build downloads the hiredis package usingFetchContent
. This is fixed by creating a version file stub containing the package version. This fixes a problem seen in PR #150, a testcase that should be run when using hiredis 1.0.1 will not run even when the build downloads hiredis 1.0.1.