كيفية إصلاح CMake: Could not find a package configuration file provided by Drogon على Ubuntu

المشكلة

أثناء ترجمة مشروع C/C++ باستخدام CMake ترى رسالة الخطأ التالية

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.

الحل

ثبّت libdrogon-dev باستخدام

install_libdrogon.sh
sudo apt -y install libdrogon-dev

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