]> git.saurik.com Git - apt.git/commitdiff
CMake: Use find_package() for curl instead of pkg_check_modules()
authorJulian Andres Klode <jak@debian.org>
Sat, 6 Aug 2016 22:22:44 +0000 (00:22 +0200)
committerJulian Andres Klode <jak@debian.org>
Wed, 10 Aug 2016 14:10:33 +0000 (16:10 +0200)
No need to involve pkg-config when CMake has builtin support

Gbp-Dch: ignore

CMakeLists.txt

index e01fdbed5c28a84417aedc6d262b4578ba6d308c..44b301cc21976be7e02731138ccb28887043a0ae 100644 (file)
@@ -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()