Skip to content

[gettext] find_package(Intl) not setting Intl_LIBRARIES #14548

@ennorehling

Description

@ennorehling

Is your feature request related to a problem? Please describe.
I've been trying to use libintl with my CMake based project in Visual Studio on Windows, and was frustrated by the fact that it didn't seem to set the Intl_LIBRARIES variable, so I did some digging.

Proposed solution
It seems that the FindIntl.cmake that's shipping with vcpkg's gettext package doesn't look for the correct library name. find_library(Intl_LIBRARY "intl" DOC "libintl libraries (if not in the C library)") doesn't find the library, because it is called libintl.

Describe alternatives you've considered
I can work around this by adding find_library(Intl_LIBRARY NAMES libintl intl) before the find_package(Intl) command, but a better fix would surely be to do this in FindIntl.cmake itself.

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions