Revert "cmake: add ccache support"

This reverts commit 93f5348c47.

You should use the CMake flag `-DCMAKE_CXX_COMPILER_LAUNCHER=ccache`
instead.

Sibling-to: https://github.com/libtom/libtommath/pull/577
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
Steffen Jaeckel 2025-10-06 15:17:36 +02:00
parent c895dd990c
commit 52b93bf3d1

View file

@ -50,20 +50,6 @@ option(BUILD_SHARED_LIBS
)
option(WITH_PTHREAD "Build with pthread support" FALSE)
# -----------------------------------------------------------------------------
# Add support for ccache if desired
# -----------------------------------------------------------------------------
find_program(CCACHE ccache)
if(CCACHE)
option(ENABLE_CCACHE "Enable ccache." ON)
endif()
# use ccache if installed
if(CCACHE AND ENABLE_CCACHE)
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE})
endif()
# -----------------------------------------------------------------------------
# Compose CFLAGS
# -----------------------------------------------------------------------------