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.
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 calledlibintl.Describe alternatives you've considered
I can work around this by adding
find_library(Intl_LIBRARY NAMES libintl intl)before thefind_package(Intl)command, but a better fix would surely be to do this in FindIntl.cmake itself.