vcpkg/ports/log4cxx/fix-find-package.patch
JonLiu1993 1e8122f2f8
[log4cxx] fix find_package error (#34996)
* [log4cxx] fix find_package error

* update version

---------

Co-authored-by: vzhli17 <v-zhli17@microsoft.com>
2023-11-10 11:43:18 -08:00

14 lines
404 B
Diff

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)