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.

Intl_FOUND

True if libintl is found.

Intl_INCLUDE_DIRS

The directory containing the libintl headers.

Intl_LIBRARIES

The intl libraries to be linked.

Intl_VERSION

New in version 3.21.

The version of intl found (x.y.z)

Intl_VERSION_MAJOR

New in version 3.21.

The major version of intl

Intl_VERSION_MINOR

New in version 3.21.

The minor version of intl

Intl_VERSION_PATCH

New in version 3.21.

The patch version of intl

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_IS_BUILT_IN

New in version 3.20.

whether intl is a part of the C library.

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

Some libintl implementations don't embed the version number in their header files. In this case the variables Intl_VERSION* will be empty.

Note

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