You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdepim/indexlib/ConfigureChecks.cmake

25 lines
707 B

#################################################
#
# (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 )