From 00f683fcf9b2ab6f7da32ee621e726eed294b36f Mon Sep 17 00:00:00 2001 From: alesapin Date: Fri, 22 Apr 2022 11:30:09 +0200 Subject: [PATCH] Update CMakeLists.txt Co-authored-by: Mikhail f. Shiryaev --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c0f5e6b0268..e8b6e9217d2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -257,7 +257,11 @@ endif() option(USE_DEBUG_HELPERS "Enable debug helpers" ${USE_DEBUG_HELPERS}) option(BUILD_STANDALONE_KEEPER "Build keeper as small standalone binary" OFF) -option(CREATE_KEEPER_SYMLINK "Create symlink for clickhouse-keeper to main server binary" ON) +if (NOT BUILD_STANDALONE_KEEPER) + option(CREATE_KEEPER_SYMLINK "Create symlink for clickhouse-keeper to main server binary" ON) +else () + option(CREATE_KEEPER_SYMLINK "Create symlink for clickhouse-keeper to main server binary" OFF) +endif () # Create BuildID when using lld. For other linkers it is created by default. if (LINKER_NAME MATCHES "lld$")