Skip to content

Commit

Permalink
CMake: Search for expat package in Config mode. Config mode package n…
Browse files Browse the repository at this point in the history
…amed

lowercase (expat) instead of uppercase (EXPAT).

git-svn-id: https://svn.apache.org/repos/asf/apr/apr-util/branches/1.7.x@1920647 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Ivan Zhakov committed Sep 14, 2024
1 parent debc0b4 commit 6e523b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ IF(POLICY CMP0091)
ENDIF()

FIND_PACKAGE(APR REQUIRED)
FIND_PACKAGE(EXPAT)
FIND_PACKAGE(expat CONFIG)
FIND_PACKAGE(LibXml2)
FIND_PACKAGE(OpenSSL)
FIND_PACKAGE(SQLite3)
Expand Down Expand Up @@ -106,8 +106,8 @@ CONFIGURE_FILE(include/apu_want.hw
COPYONLY)

IF(APU_USE_EXPAT)
SET(XMLLIB_INCLUDE_DIR ${EXPAT_INCLUDE_DIRS})
SET(XMLLIB_LIBRARIES ${EXPAT_LIBRARIES})
SET(XMLLIB_INCLUDE_DIR)
SET(XMLLIB_LIBRARIES expat::expat)
ELSE()
SET(XMLLIB_INCLUDE_DIR)
SET(XMLLIB_LIBRARIES LibXml2::LibXml2)
Expand Down

0 comments on commit 6e523b3

Please sign in to comment.