From 0d371473773769bc37409bc91c76ee9ee10d6a25 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 15 Jul 2019 22:21:37 +0300 Subject: [PATCH] Added fatal error in cmake --- cmake/find_mimalloc.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/find_mimalloc.cmake b/cmake/find_mimalloc.cmake index ada53387cf..1820421379 100644 --- a/cmake/find_mimalloc.cmake +++ b/cmake/find_mimalloc.cmake @@ -8,6 +8,8 @@ if (NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/mimalloc/include/mimalloc.h") endif () if (ENABLE_MIMALLOC) + message (FATAL_ERROR "Mimalloc is not production ready. (Disable with cmake -D ENABLE_MIMALLOC=0). If you want to use mimalloc, you must manually remove this message.") + set (MIMALLOC_INCLUDE_DIR ${ClickHouse_SOURCE_DIR}/contrib/mimalloc/include) set (USE_MIMALLOC 1) set (MIMALLOC_LIBRARY mimalloc-static)