From 7db5e19f7499cce5b86d63f8af5ae5ecf7245bf0 Mon Sep 17 00:00:00 2001 From: Naram Qashat Date: Sun, 26 Sep 2010 15:35:24 -0400 Subject: Partial fix for finding gettext with CMake, still doesn't fix the lack of finding non-standard paths though. --- src/module.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/module.cpp') diff --git a/src/module.cpp b/src/module.cpp index da6673dbf..2b7676550 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -8,7 +8,7 @@ #include "modules.h" -#ifdef HAVE_GETTEXT +#ifdef GETTEXT_FOUND # include #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 } -- cgit