File: CLuceneBoost.cmake

package info (click to toggle)
clucene-core 2.3.3.4%2Bdfsg-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 7,900 kB
  • sloc: cpp: 70,727; ansic: 39,655; sh: 338; makefile: 17; php: 5
file content (22 lines) | stat: -rw-r--r-- 874 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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)
  #todo: allow this to fall back on a local distributed copy, so user doesn't have to d/l Boost seperately
  SET(Boost_USE_MULTITHREAD ON)
  FIND_PACKAGE( Boost )
  
  #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} )
  ELSE()
    MESSAGE( "Boost not found, using local: ${clucene_SOURCE_DIR}/src/ext" )
    SET(${path} ${clucene_SOURCE_DIR}/src/ext )
  ENDIF()
ENDMACRO (GET_BOOST_INCLUDE_PATH path)