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:
parent
99dcb44851
commit
2576dd4692
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user