From: Julian Andres Klode Date: Sat, 6 Aug 2016 22:22:44 +0000 (+0200) Subject: CMake: Use find_package() for curl instead of pkg_check_modules() X-Git-Tag: 1.3_rc1~9^2~28 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/1ed5f97952d3a7b722bd73992c92769ec0efc67c CMake: Use find_package() for curl instead of pkg_check_modules() No need to involve pkg-config when CMake has builtin support Gbp-Dch: ignore --- diff --git a/CMakeLists.txt b/CMakeLists.txt index e01fdbed5..44b301cc2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,7 @@ endif() # apt-transport-https dependencies -pkg_check_modules(CURL libcurl REQUIRED) +find_package(CURL REQUIRED) if (CURL_FOUND) set(HAVE_CURL 1) endif()