mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
[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:
parent
8e745df694
commit
1e8122f2f8
13
ports/log4cxx/fix-find-package.patch
Normal file
13
ports/log4cxx/fix-find-package.patch
Normal 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)
|
@ -6,6 +6,8 @@ vcpkg_download_distfile(ARCHIVE
|
||||
|
||||
vcpkg_extract_source_archive(
|
||||
SOURCE_PATH ARCHIVE "${ARCHIVE}"
|
||||
PATCHES
|
||||
fix-find-package.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
|
@ -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",
|
||||
|
@ -5218,7 +5218,7 @@
|
||||
},
|
||||
"log4cxx": {
|
||||
"baseline": "1.1.0",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"loguru": {
|
||||
"baseline": "2.1.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "c030a796829f4525b2369a135d7bdc615b6fb14b",
|
||||
"version": "1.1.0",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "eca29ecb5127d26bd46aad143468b069a045d104",
|
||||
"version": "1.1.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user