Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SRLBoost.cmake « cmake « mgizapp - github.com/moses-smt/mgiza.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: af3a956e24e399cdbeb8d56c47fecc3237be4fbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#Locate Boost libs. Windows users: make sure BOOST_ROOT and BOOST_PATH are set correctly on your environment.
#See the site FAQ for more details.

MACRO (GET_BOOST_INCLUDE_PATH path libs)
  #todo: allow this to fall back on a local distributed copy, so user doesn't have to d/l Boost seperately
  
  #todo: limit Boost version?
  #todo: use COMPONENTS threads to locate boost_threads without breaking the current support
  IF(Boost_FOUND)
    IF (NOT _boost_IN_CACHE)
      MESSAGE( "Boost found" )
      message(STATUS "Boost_INCLUDE_DIR    : ${Boost_INCLUDE_DIR}")
    ENDIF (NOT _boost_IN_CACHE)
    SET(${path} ${Boost_INCLUDE_DIRS} )
	SET(${libs} ${Boost_LIBRARIES} )
	link_directories ( ${Boost_LIBRARY_DIRS} )
  ELSE()
    MESSAGE(FATAL_ERROR "Boost not found, please set the BOOST_ROOT environment variable " )
  ENDIF()
ENDMACRO (GET_BOOST_INCLUDE_PATH path libs)