summaryrefslogtreecommitdiffstats
path: root/indexlib/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-21 23:34:09 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-21 23:34:09 +0000
commit75f32756ec8e53a0f254866c0d7120b078ce3b6e (patch)
tree8ce60911389d282ef783a29d067aba67cfd50d3d /indexlib/ConfigureChecks.cmake
parent760bf34acbfebc8f7d2c569238138173c103f0db (diff)
downloadtdepim-75f32756ec8e53a0f254866c0d7120b078ce3b6e.tar.gz
tdepim-75f32756ec8e53a0f254866c0d7120b078ce3b6e.zip
[kdepim] indexlib ported to cmake; added indexlib (optional) support to kmail
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1225601 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'indexlib/ConfigureChecks.cmake')
-rw-r--r--indexlib/ConfigureChecks.cmake24
1 files changed, 24 insertions, 0 deletions
diff --git a/indexlib/ConfigureChecks.cmake b/indexlib/ConfigureChecks.cmake
new file mode 100644
index 00000000..77664377
--- /dev/null
+++ b/indexlib/ConfigureChecks.cmake
@@ -0,0 +1,24 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include( CheckIncludeFileCXX )
+
+tde_save( CMAKE_CXX_FLAGS CMAKE_REQUIRED_INCLUDES )
+unset( CMAKE_CXX_FLAGS )
+set( CMAKE_REQUIRED_INCLUDES ${BOOST_INCLUDE_DIR} )
+
+check_include_file_cxx( "boost/format.hpp" HAVE_BOOST )
+
+if( NOT HAVE_BOOST )
+ tde_message_fatal( "boost library is required, but was not found on your system.\n Try to set boost include dir to BOOST_INCLUDE_DIR." )
+endif( )
+
+tde_restore( CMAKE_CXX_FLAGS CMAKE_REQUIRED_INCLUDES )