Files
CMake/Source/Modules
Alex Turbov 06460b7764 expat: Fix linking with system Expat via its CMake package
The Expat package intentionally provides the lowercase imported target
name `expat::expat` [1].  CMake performs `find_package(EXPAT)` w/o
specifying a finding mode (CONFIG or MODULE).  However, if a user
provides `CMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE`, the build fails due to
an unknown `EXPAT::EXPAT` target.

[1] https://github.com/libexpat/libexpat/tree/R_2_7_4/expat#using-libexpat-in-your-cmake-based-project

Issue: #27646
2026-02-25 11:42:12 -05:00
..