mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
31 lines
1.2 KiB
CMake
31 lines
1.2 KiB
CMake
# Freebsd: /usr/local/include/libcpuid/libcpuid_types.h:61:29: error: conflicting declaration 'typedef long long int int64_t'
|
|
# TODO: test new libcpuid - maybe already fixed
|
|
|
|
if (NOT ARCH_ARM)
|
|
if (OS_FREEBSD)
|
|
set (DEFAULT_USE_INTERNAL_CPUID_LIBRARY 1)
|
|
else ()
|
|
set (DEFAULT_USE_INTERNAL_CPUID_LIBRARY ${NOT_UNBUNDLED})
|
|
endif ()
|
|
option (USE_INTERNAL_CPUID_LIBRARY "Set to FALSE to use system cpuid library instead of bundled" ${DEFAULT_USE_INTERNAL_CPUID_LIBRARY})
|
|
endif ()
|
|
|
|
#if (USE_INTERNAL_CPUID_LIBRARY AND NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/libcpuid/include/cpuid/libcpuid.h")
|
|
# message (WARNING "submodule contrib/libcpuid is missing. to fix try run: \n git submodule update --init --recursive")
|
|
# set (USE_INTERNAL_CPUID_LIBRARY 0)
|
|
#endif ()
|
|
|
|
if (NOT USE_INTERNAL_CPUID_LIBRARY)
|
|
find_library (CPUID_LIBRARY cpuid)
|
|
find_path (CPUID_INCLUDE_DIR NAMES libcpuid/libcpuid.h PATHS ${CPUID_INCLUDE_PATHS})
|
|
endif ()
|
|
|
|
if (CPUID_LIBRARY AND CPUID_INCLUDE_DIR)
|
|
else ()
|
|
set (CPUID_INCLUDE_DIR ${ClickHouse_SOURCE_DIR}/contrib/libcpuid/include)
|
|
set (USE_INTERNAL_CPUID_LIBRARY 1)
|
|
set (CPUID_LIBRARY cpuid)
|
|
endif ()
|
|
|
|
message (STATUS "Using cpuid: ${CPUID_INCLUDE_DIR} : ${CPUID_LIBRARY}")
|