From d4d9fe7026734523244b0fe6f873e5efb637d0ee Mon Sep 17 00:00:00 2001 From: Konstantin Date: Sun, 23 Apr 2017 00:31:58 +0300 Subject: [PATCH] CMake: Search for libintl. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b188ad3..d78453c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,8 +7,12 @@ set(GETTEXT_PACKAGE "musl-locales") set(MUSL_LOCPATH ${CMAKE_INSTALL_DATAROOTDIR}/i18n/locales/musl CACHE PATH "Locales directory" FORCE) configure_file(config.h.in config.h) configure_file(locale.in 00locale.sh) +find_package(Intl) set(LOCALE_SOURCES locale.c categories.c categories.h config.h) add_executable(locale ${LOCALE_SOURCES}) +if(Intl_LIBRARIES) + target_link_libraries(locale ${Intl_LIBRARIES}) +endif() target_compile_options(locale PRIVATE $<$:-std=gnu11 -Wno-pedantic> )