Merge pull request #1333 from GermanAizek/patch-1

Added ccache speedup compilation
This commit is contained in:
Clayton Smith 2024-02-01 21:33:13 -05:00 committed by GitHub
commit bbf9f019c1
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)