missing: CURL_LIBRARY CURL_INCLUDE_DIR

景鹏云
2023-12-01

问题再现

在Ubuntu上使用cmake编译时出现下面问题:

CMake Error at cmake/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Call Stack (most recent call first):
  cmake/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindCURL.cmake:54 (find_package_handle_standard_args)
  cmake/ProjectJsonRpcCpp.cmake:3 (find_package)
  CMakeLists.txt:54 (include)

解决办法

sudo apt-get install libcurl4-openssl-dev
 类似资料:

相关阅读

相关文章

相关问答