Commit de7b8dd2 authored by Csaba Kertesz's avatar Csaba Kertesz

Add ccache support

parent 144f440c
......@@ -23,6 +23,17 @@ endif()
find_package(ECM ${ECM_VERSION} REQUIRED NO_MODULE)
# Ccache support
if (UNIX OR APPLE)
find_program(CCACHE_FOUND ccache)
set(CCACHE_SUPPORT OFF CACHE BOOL "Enable ccache support")
if (CCACHE_FOUND AND CCACHE_SUPPORT MATCHES ON)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
endif ()
endif ()
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
include(KDEInstallDirs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment