CMake 3.20.5 CURL error message

classic Classic list List threaded Threaded
3 messages Options
nebsar nebsar
Reply | Threaded
Open this post in threaded view
|

CMake 3.20.5 CURL error message

Hello,

I am tryin to generate a Visual Studio 2019 project and build osgEarth. But when I push the configure button on CMake, get the following error messages:

CMake Error at C:/Program Files/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files/CMake/share/cmake-3.20/Modules/FindCURL.cmake:181 (find_package_handle_standard_args)
  CMakeLists.txt:132 (find_package)

Apparently CMake cannot find the CURL directories. But when I was building OpenSceneGraph with its dependencies including CURL, I did not encounter an error like this. What can be the solution to this?
remoe remoe
Reply | Threaded
Open this post in threaded view
|

Re: CMake 3.20.5 CURL error message

This post was updated on .
Hi

Do you have tried "-DCURL_NO_CURL_CMAKE:BOOL=YES" as CMake parameter?
You can find the code of FindCurl here:
https://github.com/Kitware/CMake/blob/master/Modules/FindCURL.cmake

or one can use "--debug-find":

https://cmake.org/cmake/help/latest/release/3.17.html?highlight=debug%20find#command-line

to debug it.

when you use Windows, you can try to use vcpkg ( https://github.com/microsoft/vcpkg )

Cheers

Remo Eichenberger, Switzerland
nebsar nebsar
Reply | Threaded
Open this post in threaded view
|

Re: CMake 3.20.5 CURL error message

Thank you. I solved the problem defining the 3rd party library files in CMake Modules.