1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

CMake: add usage of ccache if it's available

ccache obviously don't give any real betefit with PCH, but still nice option to test.
This commit is contained in:
Arseniy Shestakov 2016-09-27 07:16:22 +03:00
parent 99dcb44851
commit 2576dd4692

View File

@ -3,6 +3,13 @@ cmake_minimum_required(VERSION 2.8.12)
# TODO:
# 1) Detection of Qt5 and compilation of launcher, unless explicitly disabled
# Configure ccache if available
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
endif(CCACHE_FOUND)
# where to look for cmake modules
set(CMAKE_MODULE_PATH ${CMAKE_HOME_DIRECTORY}/cmake_modules)