aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjanholt <55844471+janholt@users.noreply.github.com>2020-09-24 21:41:43 +0300
committerGitHub <noreply@github.com>2020-09-24 11:41:43 -0700
commit5c3733770af8ccfda7848928e0fcadb4f462cf1e (patch)
tree37932a8244b2c66af93f1b3ab697cc7d15cab6db
parent3031f78ddd586a7a541634b0588f430b161832c5 (diff)
downloadvcpkg-5c3733770af8ccfda7848928e0fcadb4f462cf1e.tar.gz
vcpkg-5c3733770af8ccfda7848928e0fcadb4f462cf1e.zip
[apr-util] use find_package(expat) (#13663)
Co-authored-by: janholt <janholt@gmail.com>
-rw-r--r--ports/apr-util/CONTROL2
-rw-r--r--ports/apr-util/use-vcpkg-expat.patch6
2 files changed, 4 insertions, 4 deletions
diff --git a/ports/apr-util/CONTROL b/ports/apr-util/CONTROL
index f3e54d013..c419c4332 100644
--- a/ports/apr-util/CONTROL
+++ b/ports/apr-util/CONTROL
@@ -1,6 +1,6 @@
Source: apr-util
Version: 1.6.1
-Port-Version: 2
+Port-Version: 3
Homepage: https://apr.apache.org/
Description: Apache Portable Runtime (APR) project mission is to create and maintain software libraries that provide a predictable and consistent interface to underlying platform-specific implementation
Build-Depends: expat, apr, openssl
diff --git a/ports/apr-util/use-vcpkg-expat.patch b/ports/apr-util/use-vcpkg-expat.patch
index f124fcdd5..8a35f2bc5 100644
--- a/ports/apr-util/use-vcpkg-expat.patch
+++ b/ports/apr-util/use-vcpkg-expat.patch
@@ -26,9 +26,9 @@ index 9ae90b1..71a50b0 100644
ENDIF()
-IF(NOT EXPAT_FOUND)
-+find_path(XMLLIB_INCLUDE_DIR expat.h)
-+find_library(XMLLIB_LIBRARIES NAMES libexpat libexpatMD)
-+
++find_package(expat)
++set(XMLLIB_INCLUDE_DIR ${EXPAT_INCLUDE_DIRS})
++set(XMLLIB_LIBRARIES ${EXPAT_LIBRARIES})
+IF(NOT XMLLIB_LIBRARIES)
MESSAGE(FATAL_ERROR "Expat is required, and it wasn't found!")
ENDIF()