How to fix CMake Could not find a package configuration file provided by Drogon on Ubuntu

Problem

While compiling a C/C++ project using CMake you see the following error message

cmake_drogon_error_output.txt
CMake Error at CMakeLists.txt:75 (find_package):
  By not providing "FindDrogon.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Drogon", but
  CMake did not find one.

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

    DrogonConfig.cmake
    drogon-config.cmake

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

Solution

Install libdrogon-dev by using

install_libdrogon.sh
sudo apt -y install libdrogon-dev

Check out similar posts by category: CMake C/C++