Skip to content
Permalink
Browse files

Merge pull request #6085 from lbartoletti/ccache

Use ccache if available
  • Loading branch information
mhugo committed Mar 22, 2018
2 parents c8f5979 + 8828f9a commit 4c4e8ac18a91edba257a9366098c9a897d50563b
Showing with 7 additions and 0 deletions.
  1. +7 −0 CMakeLists.txt
@@ -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
#

0 comments on commit 4c4e8ac

Please sign in to comment.
You can’t perform that action at this time.