Add ccache support with CMake

This commit is contained in:
Luis Diaz Mas
2017-08-29 23:06:41 +02:00
parent bf8edbb82a
commit e62122bb9c
+7
View File
@@ -52,3 +52,10 @@ if( EXIV2_ENABLE_BUILD_PO )
set( EXIV2_BUILD_PO 1 )
endif(MSGFMT_FOUND)
endif()
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND)
message(STATUS "Program ccache found")
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
endif()