File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,20 @@ option(WITH_GMP "Build with support for GNU Multi Precision Arithmetic Library"
3838set (MPI_PROVIDER "LTM" CACHE STRING "Build tests and demos against 'LTM', 'TFM' or 'GMP', default is LTM" )
3939option (BUILD_SHARED_LIBS "Build shared library and only the shared library if \" ON\" , default is static" OFF )
4040
41+ #-----------------------------------------------------------------------------
42+ # Add support for ccache if desired
43+ #-----------------------------------------------------------------------------
44+ find_program (CCACHE ccache)
45+
46+ if (CCACHE)
47+ option (ENABLE_CCACHE "Enable ccache." ON )
48+ endif ()
49+
50+ # use ccache if installed
51+ if (CCACHE AND ENABLE_CCACHE)
52+ set (CMAKE_C_COMPILER_LAUNCHER ${CCACHE} )
53+ endif ()
54+
4155#-----------------------------------------------------------------------------
4256# Compose CFLAGS
4357#-----------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments