#1119·hiredis

CMake FetchContent support

Author: ivan-ushakovCreated Sep 19, 2022Updated May 14, 2025
Labelsfeature

Is it possible to make FetchContent support? If I use this declaration:

FetchContent_Declare(
  hiredis
  GIT_REPOSITORY https://github.com/redis/hiredis
  GIT_TAG origin/master
  GIT_SHALLOW TRUE
)

set(DISABLE_TESTS OFF)

FetchContent_MakeAvailable(hiredis)

I get header files inside _deps/hiredis-src, not include/hiredis/ and this leads to build error for Redis++ library.