Skip to content

Commit

Permalink
Added ccache speedup compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanAizek authored Jan 30, 2024
1 parent 2c2a8e5 commit 6b43cf4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6b43cf4

Please sign in to comment.