mirror of
https://github.com/znc/znc.git
synced 2026-08-07 01:13:25 +02:00
Merge pull request #1939 from DarthGandalf/boost
Find boost in CONFIG mode of CMake
This commit is contained in:
+1
-1
@@ -261,7 +261,7 @@ endif()
|
||||
|
||||
tristate_option(I18N "Native language support (i18n)")
|
||||
if(WANT_I18N)
|
||||
find_package(Boost ${TRISTATE_I18N_REQUIRED} COMPONENTS locale)
|
||||
find_package(Boost ${TRISTATE_I18N_REQUIRED} COMPONENTS locale CONFIG)
|
||||
find_package(Gettext ${TRISTATE_I18N_REQUIRED})
|
||||
endif()
|
||||
if(Boost_LOCALE_FOUND AND GETTEXT_MSGFMT_EXECUTABLE)
|
||||
|
||||
@@ -444,6 +444,10 @@ TEST_F(ZNCTest, ModpythonCommand) {
|
||||
client.Write("PRIVMSG *cmdtest :ping or");
|
||||
client.ReadUntil(":*cmdtest!cmdtest@znc.in PRIVMSG nick :ping or pong");
|
||||
|
||||
#ifndef HAVE_I18N
|
||||
GTEST_SKIP() << "I18N is disabled, skipping the rest of this test";
|
||||
#endif
|
||||
|
||||
InstallTranslation("cmdtest", "ru_RU", R"(
|
||||
msgid ""
|
||||
msgstr ""
|
||||
|
||||
@@ -19,5 +19,6 @@
|
||||
|
||||
#cmakedefine WANT_PYTHON 1
|
||||
#cmakedefine WANT_PERL 1
|
||||
#cmakedefine HAVE_I18N 1
|
||||
|
||||
#endif /* ZNCTESTCONFIG_H */
|
||||
|
||||
Reference in New Issue
Block a user