mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
64194c9b03
* Updating poco part 1: use submodule * switch to tmp submodule * update submodule * wip * wip * wip * wip * wip * fix * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * test * wip * wip * wip * wip * wip * wip * Remove werror * wip * wip * wip * wip * wip * Block pipe signal * Update poco * Update and fix poco * Better sigpipe handler * Better block sigpipe * Update BaseDaemon.cpp
30 lines
1.3 KiB
CMake
30 lines
1.3 KiB
CMake
option (USE_INTERNAL_BOOST_LIBRARY "Set to FALSE to use system boost library instead of bundled" ${NOT_UNBUNDLED})
|
|
|
|
if (NOT USE_INTERNAL_BOOST_LIBRARY)
|
|
set (Boost_USE_STATIC_LIBS ${USE_STATIC_LIBRARIES})
|
|
set (BOOST_ROOT "/usr/local")
|
|
find_package (Boost 1.60 COMPONENTS program_options system filesystem thread)
|
|
# incomplete, no include search, who use it?
|
|
if (NOT Boost_FOUND)
|
|
# # Try to find manually.
|
|
# set (BOOST_PATHS "")
|
|
# find_library (Boost_PROGRAM_OPTIONS_LIBRARY boost_program_options PATHS ${BOOST_PATHS})
|
|
# find_library (Boost_SYSTEM_LIBRARY boost_system PATHS ${BOOST_PATHS})
|
|
# find_library (Boost_FILESYSTEM_LIBRARY boost_filesystem PATHS ${BOOST_PATHS})
|
|
# maybe found but incorrect version.
|
|
set (Boost_INCLUDE_DIRS "")
|
|
set (Boost_SYSTEM_LIBRARY "")
|
|
endif ()
|
|
|
|
endif ()
|
|
|
|
if (NOT Boost_SYSTEM_LIBRARY)
|
|
set (USE_INTERNAL_BOOST_LIBRARY 1)
|
|
set (Boost_PROGRAM_OPTIONS_LIBRARY boost_program_options_internal)
|
|
set (Boost_SYSTEM_LIBRARY boost_system_internal)
|
|
set (Boost_FILESYSTEM_LIBRARY boost_filesystem_internal)
|
|
set (Boost_INCLUDE_DIRS "${ClickHouse_SOURCE_DIR}/contrib/libboost/boost_1_65_0/")
|
|
endif ()
|
|
|
|
message (STATUS "Using Boost: ${Boost_INCLUDE_DIRS} : ${Boost_PROGRAM_OPTIONS_LIBRARY},${Boost_SYSTEM_LIBRARY},${Boost_FILESYSTEM_LIBRARY}")
|