Skip to content

Commit

Permalink
[ci] try ccaching
Browse files Browse the repository at this point in the history
  • Loading branch information
evaleev committed Sep 25, 2024
1 parent 4f5aee5 commit 5fcf9e1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,15 @@ if( BTAS_USE_BLAS_LAPACK )
endif()
include(external/boost.cmake)

# optional dependency: ccache
find_program(CCACHE ccache)
if(CCACHE)
mark_as_advanced(CCACHE)
message (STATUS "Found ccache: ${CCACHE}")
set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE}" CACHE STRING "Compiler launcher to use for compiling C++")
set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE}" CACHE STRING "Compiler launcher to use for compiling C")
endif(CCACHE)

##########################
# configure BTAS_ASSERT
##########################
Expand Down

0 comments on commit 5fcf9e1

Please sign in to comment.