Added support for CLion in PreLoad.cmake [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2018-09-07 03:24:59 +03:00
parent ae45b68ba2
commit 836bf136e3

View File

@ -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()