Parcourir la source

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
Julian Andres Klode il y a 10 ans
Parent
commit
1ed5f97952
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      CMakeLists.txt

+ 1 - 1
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()