在windows上使用cmake配置curlcpp时,会出现:
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) (Required is at least version "7.28.0")的情况。
可修改CMakeLists.txt
在find_package(CURL ${CURL_MIN_VERSION} REQUIRED)前添加:
set(CURL_INCLUDE_DIR "D:\\curl-7.50.3\\include")
set(CURL_LIBRARY "D:\\curl-7.50.3\\build\\Win64\\VC14\\LIB Release")
阅读(4549) | 评论(0) | 转发(0) |