CMake не может найти CryptoPP с помощью find_packageC++

Программы на C++. Форум разработчиков
Anonymous
CMake не может найти CryptoPP с помощью find_package

Сообщение Anonymous »

Я установил библиотеку C++ «Crypto++» с помощью sudo apt install libcrypto++-dev
Я нашел библиотеку с помощью этой команды: find_package(CryptoPP REQUIRED)
Но CMake по какой-то причине не может его найти и вывести эту ошибку:

Код: Выделить всё

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

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

CryptoPPConfig.cmake
cryptopp-config.cmake

Add the installation prefix of "CryptoPP" to CMAKE_PREFIX_PATH or set
"CryptoPP_DIR" to a directory containing one of the above files.  If
"CryptoPP" provides a separate development package or SDK, be sure it has
been installed.
Я также пробовал все имена, такие как CryptoPP и т. д. Это не сработало.

Подробнее здесь: https://stackoverflow.com/questions/756 ... nd-package

Вернуться в «C++»