[utf8proc] CMake package version support #39176
Labels
category:port-feature
The issue is with a library, which is requesting new capabilities that didn’t exist
depends:upstream-changes
Waiting on a change to the upstream project
Is your feature request related to a problem? Please describe.
The utf8proc port adds support for CMake package by https://github.com/microsoft/vcpkg/blob/master/ports/utf8proc/export-cmake-targets.patch . So we can use
find_package(unofficial-utf8proc)
(orfind_package(utf8proc NAMES unofficial-utf8proc)
).But it doesn't provide version information. So we can't specify required version such as
find_package(unofficial-utf8proc 2.9.0)
.Proposed solution
Could you also provide
unofficial-utf8proc-version.cmake
?We can create it by
write_basic_package_version_file()
.See also: https://cmake.org/cmake/help/latest/module/CMakePackageConfigHelpers.html#command:write_basic_package_version_file
FYI: A PR that adds support for CMake package to upstream also uses it: JuliaStrings/utf8proc#260
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: