1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: make libintl.h required if CMake option ENABLE_NLS is enabled (issue #2031)

This commit is contained in:
Sébastien Helleu
2023-10-15 14:58:26 +02:00
parent 18b3c7a30b
commit 1d6e1fd752
6 changed files with 34 additions and 30 deletions
+2 -4
View File
@@ -250,10 +250,8 @@ add_subdirectory(icons)
if(ENABLE_NLS)
find_package(Gettext REQUIRED)
add_definitions(-DENABLE_NLS)
find_package(Intl)
if(Intl_FOUND)
list(APPEND EXTRA_LIBS "${Intl_LIBRARIES}")
endif()
find_package(Intl REQUIRED)
list(APPEND EXTRA_LIBS "${Intl_LIBRARIES}")
add_subdirectory(po)
else()
add_custom_target(translations COMMAND true)