mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Remove cmake/contrib_finder.cmake
This commit is contained in:
parent
48b5c098dd
commit
e243957763
@ -486,7 +486,6 @@ message (STATUS
|
|||||||
CCACHE=${CCACHE_FOUND} ${CCACHE_VERSION}")
|
CCACHE=${CCACHE_FOUND} ${CCACHE_VERSION}")
|
||||||
|
|
||||||
include (GNUInstallDirs)
|
include (GNUInstallDirs)
|
||||||
include (cmake/contrib_finder.cmake)
|
|
||||||
|
|
||||||
include (cmake/find/icu.cmake)
|
include (cmake/find/icu.cmake)
|
||||||
include (cmake/find/ltdl.cmake) # for odbc
|
include (cmake/find/ltdl.cmake) # for odbc
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
macro(find_contrib_lib LIB_NAME)
|
|
||||||
|
|
||||||
string(TOLOWER ${LIB_NAME} LIB_NAME_LC)
|
|
||||||
string(TOUPPER ${LIB_NAME} LIB_NAME_UC)
|
|
||||||
string(REPLACE "-" "_" LIB_NAME_UC ${LIB_NAME_UC})
|
|
||||||
|
|
||||||
option (USE_INTERNAL_${LIB_NAME_UC}_LIBRARY "Use bundled library ${LIB_NAME} instead of system" ON)
|
|
||||||
|
|
||||||
if (NOT USE_INTERNAL_${LIB_NAME_UC}_LIBRARY)
|
|
||||||
find_package ("${LIB_NAME}")
|
|
||||||
if (NOT ${LIB_NAME_UC}_FOUND)
|
|
||||||
message (${RECONFIGURE_MESSAGE_LEVEL} "Cannot use system ${LIB_NAME}")
|
|
||||||
endif()
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (NOT ${LIB_NAME_UC}_FOUND)
|
|
||||||
set (USE_INTERNAL_${LIB_NAME_UC}_LIBRARY 1)
|
|
||||||
set (${LIB_NAME_UC}_LIBRARIES ${LIB_NAME_LC})
|
|
||||||
set (${LIB_NAME_UC}_INCLUDE_DIR ${${LIB_NAME_UC}_CONTRIB_INCLUDE_DIR})
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
message (STATUS "Using ${LIB_NAME}: ${${LIB_NAME_UC}_INCLUDE_DIR} : ${${LIB_NAME_UC}_LIBRARIES}")
|
|
||||||
endmacro()
|
|
Loading…
Reference in New Issue
Block a user