2016-12-20 18:45:32 +00:00
|
|
|
if (USE_INTERNAL_BOOST_LIBRARY)
|
2016-12-12 04:44:35 +00:00
|
|
|
set (Boost_PROGRAM_OPTIONS_LIBRARY boost_program_options_internal)
|
|
|
|
set (Boost_SYSTEM_LIBRARY boost_system_internal)
|
|
|
|
set (Boost_FILESYSTEM_LIBRARY boost_filesystem_internal)
|
2017-01-13 11:25:44 +00:00
|
|
|
set (Boost_INCLUDE_DIRS "${ClickHouse_SOURCE_DIR}/contrib/libboost/boost_1_62_0/")
|
|
|
|
include_directories (BEFORE ${Boost_INCLUDE_DIRS})
|
2016-12-12 04:17:16 +00:00
|
|
|
else ()
|
|
|
|
set (Boost_USE_STATIC_LIBS ${USE_STATIC_LIBRARIES})
|
|
|
|
set (BOOST_ROOT "/usr/local")
|
2017-01-13 11:25:44 +00:00
|
|
|
find_package (Boost 1.55 COMPONENTS program_options system filesystem regex thread)
|
2016-12-12 04:17:16 +00:00
|
|
|
if (NOT Boost_FOUND)
|
|
|
|
# Try to find manually.
|
|
|
|
set (BOOST_HINTS "")
|
|
|
|
if (USE_STATIC_LIBRARIES)
|
|
|
|
find_library (Boost_PROGRAM_OPTIONS_LIBRARY libboost_program_options.a HINTS ${BOOST_HINTS})
|
|
|
|
find_library (Boost_SYSTEM_LIBRARY libboost_system.a HINTS ${BOOST_HINTS})
|
|
|
|
find_library (Boost_FILESYSTEM_LIBRARY libboost_filesystem.a HINTS ${BOOST_HINTS})
|
|
|
|
else ()
|
|
|
|
find_library (Boost_PROGRAM_OPTIONS_LIBRARY boost_program_options HINTS ${BOOST_HINTS})
|
|
|
|
find_library (Boost_SYSTEM_LIBRARY boost_system HINTS ${BOOST_HINTS})
|
|
|
|
find_library (Boost_FILESYSTEM_LIBRARY boost_filesystem HINTS ${BOOST_HINTS})
|
|
|
|
endif ()
|
2016-12-06 13:35:28 +00:00
|
|
|
endif ()
|
2017-01-13 11:25:44 +00:00
|
|
|
include_directories (${Boost_INCLUDE_DIRS})
|
2016-12-06 13:35:28 +00:00
|
|
|
endif ()
|
2017-01-13 11:25:44 +00:00
|
|
|
|
|
|
|
message(STATUS "Using Boost: ${Boost_INCLUDE_DIRS} : ${Boost_PROGRAM_OPTIONS_LIBRARY},${Boost_SYSTEM_LIBRARY},${Boost_FILESYSTEM_LIBRARY}")
|
|
|
|
|