mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
cmake: ARM: make sure cpuid is not enabled by default
Signed-off-by: Konstantin Podshumok <kpp.live+signed@gmail.com>
This commit is contained in:
parent
0c30721b91
commit
18fd3e7357
@ -1,4 +1,6 @@
|
||||
if (NOT ARCH_ARM)
|
||||
option (ENABLE_CPUID "Enable libcpuid library (only internal)" ${ENABLE_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if (ARCH_ARM AND ENABLE_CPUID)
|
||||
message (${RECONFIGURE_MESSAGE_LEVEL} "cpuid is not supported on ARM")
|
||||
@ -16,19 +18,19 @@ endif()
|
||||
set (LIBRARY_DIR "${ClickHouse_SOURCE_DIR}/contrib/libcpuid")
|
||||
|
||||
set (SRCS
|
||||
${LIBRARY_DIR}/libcpuid/asm-bits.c
|
||||
${LIBRARY_DIR}/libcpuid/cpuid_main.c
|
||||
${LIBRARY_DIR}/libcpuid/libcpuid_util.c
|
||||
${LIBRARY_DIR}/libcpuid/msrdriver.c
|
||||
${LIBRARY_DIR}/libcpuid/rdmsr.c
|
||||
${LIBRARY_DIR}/libcpuid/rdtsc.c
|
||||
${LIBRARY_DIR}/libcpuid/recog_amd.c
|
||||
${LIBRARY_DIR}/libcpuid/recog_intel.c
|
||||
"${LIBRARY_DIR}/libcpuid/asm-bits.c"
|
||||
"${LIBRARY_DIR}/libcpuid/cpuid_main.c"
|
||||
"${LIBRARY_DIR}/libcpuid/libcpuid_util.c"
|
||||
"${LIBRARY_DIR}/libcpuid/msrdriver.c"
|
||||
"${LIBRARY_DIR}/libcpuid/rdmsr.c"
|
||||
"${LIBRARY_DIR}/libcpuid/rdtsc.c"
|
||||
"${LIBRARY_DIR}/libcpuid/recog_amd.c"
|
||||
"${LIBRARY_DIR}/libcpuid/recog_intel.c"
|
||||
)
|
||||
|
||||
add_library (cpuid ${SRCS})
|
||||
|
||||
target_include_directories (cpuid SYSTEM PUBLIC ${LIBRARY_DIR})
|
||||
target_include_directories (cpuid SYSTEM PUBLIC "${LIBRARY_DIR}")
|
||||
target_compile_definitions (cpuid PUBLIC USE_CPUID=1)
|
||||
target_compile_definitions (cpuid PRIVATE VERSION="v0.4.1")
|
||||
if (COMPILER_CLANG)
|
||||
|
Loading…
Reference in New Issue
Block a user