summaryrefslogtreecommitdiffstats
path: root/indexlib/ConfigureChecks.cmake
blob: 77664377f0eb7bf13680decbb6ac81b0084cc712 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 )