From 2a78c543a1d8191d63cfad702ef8cdfc9d4c322c Mon Sep 17 00:00:00 2001 From: summermorningdream <24917424+zxkmm@users.noreply.github.com> Date: Sat, 18 May 2024 17:33:07 +0800 Subject: [PATCH] revert adding ccache tool (#2153) --- CMakeLists.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4c254ce21..a9b6cbb05 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,12 +72,13 @@ set(HACKRF_CPLD_XSVF_PATH ${HACKRF_PATH}/firmware/cpld/sgpio_if/${HACKRF_CPLD_XS set(HACKRF_FIRMWARE_DFU_IMAGE ${hackrf_usb_BINARY_DIR}/${HACKRF_FIRMWARE_DFU_FILENAME}) set(HACKRF_FIRMWARE_BIN_IMAGE ${hackrf_usb_BINARY_DIR}/${HACKRF_FIRMWARE_BIN_FILENAME}) -find_program(CCACHE "ccache") -if(CCACHE) - set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE}) - set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE}) - set(ENV{CCACHE_SLOPPINESS} pch_defines,time_macros) -endif(CCACHE) +# this seems causing some issues (ref. in discord discussions), so temporarily disabled, until figure out the pros and cons and bugs of this tool. +#find_program(CCACHE "ccache") +#if(CCACHE) +# set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE}) +# set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE}) +# set(ENV{CCACHE_SLOPPINESS} pch_defines,time_macros) +#endif(CCACHE) enable_testing() add_subdirectory(firmware)