mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
cmake: Build fix. [#METR-23701]
This commit is contained in:
parent
8e1a6aaf3e
commit
0380927f28
@ -197,11 +197,7 @@ endif ()
|
|||||||
set (ICU_LIBS ${ICUI18N} ${ICUUC} ${ICUDATA})
|
set (ICU_LIBS ${ICUI18N} ${ICUUC} ${ICUDATA})
|
||||||
|
|
||||||
# 3. boost
|
# 3. boost
|
||||||
set (Boost_USE_STATIC_LIBS ${USE_STATIC_LIBRARIES})
|
include (cmake/find_boost.cmake)
|
||||||
find_package (Boost 1.57 COMPONENTS program_options system filesystem regex thread)
|
|
||||||
if (NOT Boost_FOUND)
|
|
||||||
message (SEND_ERROR "Boost is required")
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
# 4. ltdl
|
# 4. ltdl
|
||||||
set (LTDL_HINTS "/usr/local/opt/libtool/lib")
|
set (LTDL_HINTS "/usr/local/opt/libtool/lib")
|
||||||
|
19
cmake/find_boost.cmake
Normal file
19
cmake/find_boost.cmake
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
set (Boost_USE_STATIC_LIBS ${USE_STATIC_LIBRARIES})
|
||||||
|
find_package (Boost 1.57 COMPONENTS program_options system filesystem regex thread)
|
||||||
|
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})
|
||||||
|
find_library (Boost_REGEX_LIBRARY libboost_regex.a HINTS ${BOOST_HINTS})
|
||||||
|
find_library (Boost_THREAD_LIBRARY libboost_thread.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})
|
||||||
|
find_library (Boost_REGEX_LIBRARY boost_regex HINTS ${BOOST_HINTS})
|
||||||
|
find_library (Boost_THREAD_LIBRARY boost_thread HINTS ${BOOST_HINTS})
|
||||||
|
endif ()
|
||||||
|
endif ()
|
Loading…
Reference in New Issue
Block a user