Ver código fonte

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 10 anos atrás
pai
commit
1ed5f97952
1 arquivos alterados com 1 adições e 1 exclusões
  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()