Skip to content

[utf8proc] CMake package version support #39176

@kou

Description

@kou

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

Metadata

Metadata

Assignees

Labels

category:port-featureThe issue is with a library, which is requesting new capabilities that didn’t existdepends:upstream-changesWaiting on a change to the upstream project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions