Translations: Update the German man page translations.
[xz.git] / cmake / tuklib_mbstr.cmake
blobe073be6a676779c6801a207b05cb2f6b6b4c2766
2 # tuklib_mbstr.cmake - see tuklib_mbstr.m4 for description and comments
4 # Author: Lasse Collin
6 # This file has been put into the public domain.
7 # You can do whatever you want with this file.
10 include("${CMAKE_CURRENT_LIST_DIR}/tuklib_common.cmake")
11 include(CheckSymbolExists)
13 function(tuklib_mbstr TARGET_OR_ALL)
14     check_symbol_exists(mbrtowc wchar.h HAVE_MBRTOWC)
15     tuklib_add_definition_if("${TARGET_OR_ALL}" HAVE_MBRTOWC)
17     # NOTE: wcwidth() requires _GNU_SOURCE or _XOPEN_SOURCE on GNU/Linux.
18     check_symbol_exists(wcwidth wchar.h HAVE_WCWIDTH)
19     tuklib_add_definition_if("${TARGET_OR_ALL}" HAVE_WCWIDTH)
20 endfunction()