cpr-example
cpr-example copied to clipboard
Unable to configure CMake
When I try to configure CMake I get the following error: Set CURL_FOUND to TRUE. Set CURL_LIBRARIES to libcurl. Set CURL_INCLUDE_DIRS to C:/Users/#####/Desktop/Projects/cpr-example/opt/cpr/opt/curl/include;C:/Users/#####/Desktop/Projects/cpr-example/build/opt/cpr/opt/curl/include/curl. Using CURL_INCLUDE_DIRS: C:/Users/#####/Desktop/Projects/cpr-example/opt/cpr/opt/curl/include;C:/Users/#####/Desktop/Projects/cpr-example/build/opt/cpr/opt/curl/include/curl. Using CURL_LIBRARIES: CURL_LIBRARY-NOTFOUND. CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: CURL_LIBRARY linked by target "cpr" in directory C:/Users/#####/Desktop/Projects/cpr-example/opt/cpr/cpr
I have completely cloned the repo and ran the submodules update command.
+1 facing the exact same issue. Any help is greatly appreciated!
+1 i found "Could NOT find LibSSH2 (missing: LIBSSH2_INCLUDE_DIR LIBSSH2_LIBRARY)"
I got around this by installing libcurl (specifically libcurl4-openssl-dev). My build host is raspbian. I had to modify the source to patch out one of the cases in error.cpp, but after that it worked.
@Meqolo
Please, can you specify:
- the OS
- the dependencies: CURL