Instead of allowing Hunter to download the prerequisites, you can download and provide them yourself. Microbench would then be configured in the following way
cmake .. \
-DCONFIG_USE_HUNTER=OFF \
-DSUGAR_ROOT=${SUGAR_ROOT}
-DCONFIG_USE_HUNTER=OFF disables hunter. In that case, you need to provide the software provided on this page.
-DSUGAR_ROOT tells CMake where to find Sugar, which microbench uses to find source files.
If you install any of the libraries in an unusual place, you will have to use -DCMAKE_PREFIX_PATH, a ;-delimited list of install locations for the libraries.
If you install a library with the prefix <path>, you probably want to add <path> to -DCMAKE_PREFIX_PATH.
cmake .. \
-DCONFIG_USE_HUNTER=OFF \
-DCMAKE_PREFIX_PATH="${BENCHMARK_ROOT};${CUB_ROOT};${FMT_ROOT};${SPDLOG_ROOT};${BENCHMARK_ROOT}" \
-DSUGAR_ROOT=${SUGAR_ROOT}
spdlog uses fmt 4.0.0, so microbench does too. Github Release.
apt-get install libspdlog-dev
or