mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Cmake: dont touch CMAKE_INSTALL_PREFIX
This commit is contained in:
parent
9848fdf2ed
commit
13e9b5c949
@ -137,9 +137,8 @@ if (ENABLE_TESTS)
|
||||
add_subdirectory (dbms/tests)
|
||||
endif (ENABLE_TESTS)
|
||||
|
||||
# Installation prefix
|
||||
if (NOT CMAKE_SYSTEM MATCHES "FreeBSD")
|
||||
set (CMAKE_INSTALL_PREFIX /usr)
|
||||
# when installing to /usr - place configs to /etc but for /usr/local place to /usr/local/etc
|
||||
if (CMAKE_INSTALL_PREFIX MATCHES "/usr")
|
||||
set (CLICKHOUSE_ETC_DIR /etc)
|
||||
else ()
|
||||
set (CLICKHOUSE_ETC_DIR ${CMAKE_INSTALL_PREFIX}/etc)
|
||||
|
2
debian/rules
vendored
2
debian/rules
vendored
@ -23,7 +23,7 @@ CC := $(DEB_HOST_GNU_TYPE)-$(DEB_CC)$(DEB_COMPILER_VERSION)
|
||||
CXX := $(DEB_HOST_GNU_TYPE)-$(DEB_CXX)$(DEB_COMPILER_VERSION)
|
||||
endif
|
||||
|
||||
CMAKE_FLAGS ?= -DCMAKE_CXX_COMPILER=`which $(CXX)` -DCMAKE_C_COMPILER=`which $(CC)` $(CMAKE_FLAGS_ADD)
|
||||
CMAKE_FLAGS ?= -DCMAKE_CXX_COMPILER=`which $(CXX)` -DCMAKE_C_COMPILER=`which $(CC)` -DCMAKE_INSTALL_PREFIX=/usr $(CMAKE_FLAGS_ADD)
|
||||
|
||||
ifdef CMAKE_BUILD_TYPE
|
||||
CMAKE_FLAGS += -DCMAKE_BUILD_TYPE=$(CMAKE_BUILD_TYPE)
|
||||
|
Loading…
Reference in New Issue
Block a user