mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-10 17:14:10 +00:00
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