mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 19:42:00 +00:00
09d7bc3ed4
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
1.1 KiB
1.1 KiB
CMake in ClickHouse
TL; DR How to make ClickHouse compile and link faster?
Minimal ClickHouse build example:
cmake .. \
-DCMAKE_C_COMPILER=$(which clang-13) \
-DCMAKE_CXX_COMPILER=$(which clang++-13) \
-DCMAKE_BUILD_TYPE=Debug \
-DENABLE_CLICKHOUSE_ALL=OFF \
-DENABLE_CLICKHOUSE_SERVER=ON \
-DENABLE_CLICKHOUSE_CLIENT=ON \
-DENABLE_LIBRARIES=OFF \
-DUSE_UNWIND=ON \
-DENABLE_UTILS=OFF \
-DENABLE_TESTS=OFF
CMake files types
- ClickHouse's source CMake files (located in the root directory and in
/src
). - Arch-dependent CMake files (located in
/cmake/*os_name*
). - Libraries finders (search for contrib libraries, located in
/contrib/*/CMakeLists.txt
). - Contrib build CMake files (used instead of libraries' own CMake files, located in
/cmake/modules
)
List of CMake flags
- This list is auto-generated by this Python script.
- The flag name is a link to its position in the code.
- If an option's default value is itself an option, it's also a link to its position in this list.