mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
Use ccache if available
This commit is contained in:
parent
4a2da5006b
commit
8828f9a700
@ -28,6 +28,13 @@ SET(CMAKE_COLOR_MAKEFILE ON)
|
||||
# set path to additional CMake modules
|
||||
SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
|
||||
|
||||
# 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)
|
||||
|
||||
# in generated makefiles use relative paths so the project dir is moveable
|
||||
# Note commented out since it cause problems but it would be nice to resolve these and enable
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user