Merge pull request #1939 from DarthGandalf/boost

Find boost in CONFIG mode of CMake
This commit is contained in:
Alexey Sokolov
2025-05-04 12:10:10 +01:00
committed by GitHub
3 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -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)
+4
View File
@@ -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 */