FindIntl¶
在 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¶
在 3.21 版被加入.
The version of intl found (x.y.z)
- Intl_VERSION_MAJOR¶
在 3.21 版被加入.
The major version of intl
- Intl_VERSION_MINOR¶
在 3.21 版被加入.
The minor version of intl
- Intl_VERSION_PATCH¶
在 3.21 版被加入.
The patch version of intl
在 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¶
在 3.20 版被加入.
whether
intlis a part of the C library.
備註
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.
備註
Some libintl implementations don't embed the version number in their header files.
In this case the variables Intl_VERSION* will be empty.
備註
If you wish to use the Gettext tools (msgmerge,
msgfmt, etc.), use FindGettext.