Added ccache speedup compilation

This commit is contained in:
Herman Semenov 2024-01-30 12:20:15 +00:00 committed by GitHub
parent 2c2a8e5fe7
commit 6b43cf444a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -231,6 +231,13 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
endif()
endif()
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)
# Airspy optimizations that require modified gr-osmosdr
option(CUSTOM_AIRSPY_KERNELS "Enable non-standard Airspy optimizations" ON)