cmake: Fix compatibility in package version file

See https://github.com/microsoft/vcpkg/issues/42315
This commit is contained in:
Nick Wellnhofer 2024-11-22 18:52:24 +01:00
parent de47847293
commit 2ef1beb38b

View File

@ -600,7 +600,7 @@ install(
write_basic_package_version_file(
${CMAKE_CURRENT_BINARY_DIR}/libxml2-config-version.cmake
VERSION ${PROJECT_VERSION}
COMPATIBILITY ExactVersion
COMPATIBILITY SameMajorVersion
)
install(