FindIntl — CMake 3.20.0 Documentation

# FindIntl

New in version 3.2.

Find the Gettext libintl headers and libraries.

This module reports information about the Gettext libintl installation in several variables. General variables:

    Intl_FOUND - true if the libintl headers and libraries were found
    Intl_INCLUDE_DIRS - the directory containing the libintl headers
    Intl_LIBRARIES - libintl libraries to be linked

New in version 3.20: This module defines `IMPORTED` target `Intl::Intl`.

The following cache variables may also be set:

    Intl_INCLUDE_DIR - the directory containing the libintl headers
    Intl_LIBRARY - the libintl library (if any)
    Intl_HAVE_GETTEXT_BUILTIN - check if gettext is in the C library
    Intl_HAVE_DCGETTEXT_BUILTIN - check if dcgettext is in the C library
    Intl_IS_BUILTIN - whether intl is a part of the C library determined
        from the result of Intl_HAVE_GETTEXT_BUILTIN and Intl_HAVE_DCGETTEXT_BUILTIN

New in version 3.20: Added the `Intl_HAVE_GETTEXT_BUILTIN`, `Intl_HAVE_DCGETTEXT_BUILTIN` and `Intl_IS_BUILTIN` variables.

Note

On some platforms, such as Linux with GNU libc, the gettext functions are present in the C standard library and libintl is not required. `Intl_LIBRARIES` will be empty in this case.

Note

If you wish to use the Gettext tools (`msgmerge`, `msgfmt`, etc.), use `FindGettext`.