File tree 1 file changed +14
-0
lines changed
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"
38
38
set (MPI_PROVIDER "LTM" CACHE STRING "Build tests and demos against 'LTM', 'TFM' or 'GMP', default is LTM" )
39
39
option (BUILD_SHARED_LIBS "Build shared library and only the shared library if \" ON\" , default is static" OFF )
40
40
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
+
41
55
#-----------------------------------------------------------------------------
42
56
# Compose CFLAGS
43
57
#-----------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments