-
Notifications
You must be signed in to change notification settings - Fork 7.5k
[utf8proc] CMake package version support #39176
Copy link
Copy link
Open
Labels
category:port-featureThe issue is with a library, which is requesting new capabilities that didn’t existThe issue is with a library, which is requesting new capabilities that didn’t existdepends:upstream-changesWaiting on a change to the upstream projectWaiting on a change to the upstream project
Description
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) (or find_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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
category:port-featureThe issue is with a library, which is requesting new capabilities that didn’t existThe issue is with a library, which is requesting new capabilities that didn’t existdepends:upstream-changesWaiting on a change to the upstream projectWaiting on a change to the upstream project