summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2022-01-12 23:05:25 +0000
committerSadie Powell <sadie@witchery.services>2022-01-12 23:05:25 +0000
commit33b42ce86edd190c44db5814967981844e96b421 (patch)
treebcbb7002d16f78265019963159483c725cd978c8 /CMakeLists.txt
parenta631028660d527f509c3b028cfa5f2903a125077 (diff)
Use the default CMake modules for finding gettext instead of our own.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 943d27458..486851dbc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -159,6 +159,14 @@ endif()
# Find gettext
find_package(Gettext)
+find_package(Intl)
+if(GETTEXT_FOUND AND Intl_FOUND)
+ set(HAVE_LOCALIZATION ON)
+ include_directories(${Intl_INCLUDE_DIRS})
+else()
+ message("Unable to find gettext and libintl; disabling localization")
+ set(HAVE_LOCALIZATION OFF)
+endif()
# Use the following directories as includes
include_directories(${Anope_BINARY_DIR}/include ${Anope_SOURCE_DIR}/include)