From 836bf136e39dae16c592a9c4000943f4316ae629 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Fri, 7 Sep 2018 03:24:59 +0300 Subject: [PATCH] Added support for CLion in PreLoad.cmake [#CLICKHOUSE-2] --- PreLoad.cmake | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/PreLoad.cmake b/PreLoad.cmake index b8e14c1cc51..946975fac1f 100644 --- a/PreLoad.cmake +++ b/PreLoad.cmake @@ -7,7 +7,10 @@ # How to install Ninja on Ubuntu: # sudo apt-get install ninja-build -find_program(NINJA_PATH ninja) -if (NINJA_PATH) - set(CMAKE_GENERATOR "Ninja" CACHE INTERNAL "" FORCE) -endif () +# CLion does not support Ninja +if (NOT ${CMAKE_COMMAND} MATCHES "clion") + find_program(NINJA_PATH ninja) + if (NINJA_PATH) + set(CMAKE_GENERATOR "Ninja" CACHE INTERNAL "" FORCE) + endif () +endif()