1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 02:46:37 +02:00

Partial fix for finding gettext with CMake, still doesn't fix the lack of finding non-standard paths though.

This commit is contained in:
Naram Qashat
2010-09-26 15:35:24 -04:00
parent f3840ed110
commit 7db5e19f74
7 changed files with 12 additions and 14 deletions
+2 -4
View File
@@ -8,7 +8,7 @@
#include "modules.h"
#ifdef HAVE_GETTEXT
#ifdef GETTEXT_FOUND
# include <libintl.h>
#endif
@@ -29,11 +29,9 @@ Module::Module(const Anope::string &mname, const Anope::string &creator)
Modules.push_back(this);
#if HAVE_GETTEXT
#if GETTEXT_FOUND
if (!bindtextdomain(this->name.c_str(), (services_dir + "/languages/").c_str()))
{
Log() << "Error calling bindtextdomain, " << Anope::LastError();
}
#endif
}