I’m trying to generate project files for bencode project. It uses fmt, gsl and expected libraries as dependencies, it adds them using
find_package(fmt CONFIG REQUIRED)
find_package(gsl-lite CONFIG REQUIRED)
find_package(expected-lite CONFIG REQUIRED)
When I run cmake CMakeLists.txt
, I get an error:
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19045.
CMake Error at CMakeLists.txt:30 (find_package):
Could not find a package configuration file provided by "fmt" with any of
the following names:
fmtConfig.cmake
fmt-config.cmake
Add the installation prefix of "fmt" to CMAKE_PREFIX_PATH or set "fmt_DIR"
to a directory containing one of the above files. If "fmt" provides a
separate development package or SDK, be sure it has been installed.
The fmt library doesn’t provide neither fmtConfig.cmake, nor fmt-config.cmake file in its’ repository. So even after I manually clone the fmt repository locally, there is no directory to provide with the files.