ClickHouse/cmake/linux
Azat Khuzhin 40d5627510
Avoid loading toolchain file multiple times to avoid confusing ccache (#39387)
During first run of cmake the toolchain file will be loaded twice,
- /usr/share/cmake-3.23/Modules/CMakeDetermineSystem.cmake
- /bld/CMakeFiles/3.23.2/CMakeSystem.cmake

But once you already have non-empty cmake cache it will be loaded only
once:
- /bld/CMakeFiles/3.23.2/CMakeSystem.cmake

This has no harm except for double load of toolchain will add
--gcc-toolchain multiple times that will not allow ccache to reuse the
cache.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-07-21 01:26:28 +02:00
..
default_libs.cmake
toolchain-aarch64.cmake
toolchain-ppc64le.cmake
toolchain-riscv64.cmake
toolchain-x86_64-musl.cmake
toolchain-x86_64.cmake Avoid loading toolchain file multiple times to avoid confusing ccache (#39387) 2022-07-21 01:26:28 +02:00