summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-08-27 12:28:27 -0400
committerAdam <Adam@anope.org>2016-08-27 12:28:27 -0400
commitc4ebf02bce968e4846a0be72dfa7b104f21f5166 (patch)
tree2b38b5c06b0136411f7f7ca236fa08108ba84301 /CMakeLists.txt
parent26e158addf18ff61b99dc70a407b22682e6a421d (diff)
Optionally allow using Boost.Locale for hashcomp
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 890e15969..1705ac733 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -54,6 +54,15 @@ endif()
# Find gettext
find_package(Gettext)
+# FindBoost.cmake warns even if you specify QUIET, so
+find_path(BOOST_LOCALE_HEADER_FILE NAMES boost/locale.hpp)
+if(BOOST_LOCALE_HEADER_FILE)
+ find_package(Boost COMPONENTS locale)
+endif()
+
+if(Boost_FOUND)
+ include_directories(${Boost_INCLUDE_DIRS})
+endif()
# Use the following directories as includes
include_directories(${Anope_BINARY_DIR}/include ${Anope_SOURCE_DIR}/include)