hyperrealm / libconfig

C/C++ library for processing configuration files
https://hyperrealm.github.io/libconfig/
GNU Lesser General Public License v2.1
1.1k stars 360 forks source link

Config.cmake files not generated with cmake #143

Closed agirault closed 4 years ago

agirault commented 5 years ago

System: MacOS 10.14.3 CMake: 3.14.3 libconfig: 6868939663c5be4907840012de471158d886b7bf

Commands:

cmake ../libconfig -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -GNinja
ninja

The files libconfig++Config.cmake.in and libconfigConfig.cmake.in are not configured.

When calling findPackage(libconfig++) from an external project, we get the following error:

By not providing "Findlibconfig++.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "libconfig++", but CMake did not find one.

Could not find a package configuration file provided by "libconfig++" with any of the following names:

libconfig++Config.cmake
libconfig++-config.cmake

Add the installation prefix of "libconfig++" to CMAKE_PREFIX_PATH or set "libconfig++_DIR" to a directory containing one of the above files. If "libconfig++" provides a separate development package or SDK, be sure it has been installed.