[log4cxx] fix find_package error (#34996)

* [log4cxx] fix find_package error

* update version

---------

Co-authored-by: vzhli17 <v-zhli17@microsoft.com>
This commit is contained in:
JonLiu1993 2023-11-10 11:43:18 -08:00 committed by GitHub
parent 8e745df694
commit 1e8122f2f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 61c0479..3bd3327 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -60,7 +60,7 @@ find_package(APR-Util REQUIRED)
find_package( Threads REQUIRED )
# Find expat for XML parsing
-find_package(EXPAT REQUIRED)
+find_package(expat CONFIG REQUIRED)
if(TARGET EXPAT::EXPAT)
set(EXPAT_LIBRARIES EXPAT::EXPAT)
elseif(TARGET expat::expat)

View File

@ -6,6 +6,8 @@ vcpkg_download_distfile(ARCHIVE
vcpkg_extract_source_archive(
SOURCE_PATH ARCHIVE "${ARCHIVE}"
PATCHES
fix-find-package.patch
)
vcpkg_cmake_configure(

View File

@ -1,6 +1,7 @@
{
"name": "log4cxx",
"version": "1.1.0",
"port-version": 1,
"description": "Apache log4cxx is a logging framework for C++ patterned after Apache log4j, which uses Apache Portable Runtime for most platform-specific code and should be usable on any platform supported by APR",
"homepage": "https://logging.apache.org/log4cxx",
"license": "Apache-2.0",

View File

@ -5218,7 +5218,7 @@
},
"log4cxx": {
"baseline": "1.1.0",
"port-version": 0
"port-version": 1
},
"loguru": {
"baseline": "2.1.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c030a796829f4525b2369a135d7bdc615b6fb14b",
"version": "1.1.0",
"port-version": 1
},
{
"git-tree": "eca29ecb5127d26bd46aad143468b069a045d104",
"version": "1.1.0",