CURL package not found with static libraries


I need to build a standalone executable which uses MAVSDK and therefore I want to build MAVSDK as static library. But when I set the flag BUILD_SHARED_LIBS=OFF with


I finish with the following error when I build my application:

CMake Error at /usr/share/cmake-3.13/Modules/CMakeFindDependencyMacro.cmake:48 (find_package):
  Could not find a package configuration file provided by "CURL" with any of
  the following names:


  Add the installation prefix of "CURL" to CMAKE_PREFIX_PATH or set
  "CURL_DIR" to a directory containing one of the above files.  If "CURL"
  provides a separate development package or SDK, be sure it has been
Call Stack (most recent call first):
  /usr/local/lib/cmake/MAVSDK/MAVSDKConfig.cmake:7 (find_dependency)
  CMakeLists.txt:14 (find_package)

I finish with the same error with MAVSDK 0.33.1 and with develop branch. I saw a similar issue here but when enabling shared library.

I’m missing something @JulianOes, @JonasVautherin ?