Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 5ffe84d11bc2002ee0627c421246a2b7cd3a33e5 Mon Sep 17 00:00:00 2001
- From: Christopher Degawa <ccom@randomderp.com>
- Date: Sat, 7 Sep 2019 21:13:53 -0400
- Subject: [PATCH] CMake: add USE_CCACHE variable to disable using found ccache
- ---
- CMakeLists.txt | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
- diff --git a/CMakeLists.txt b/CMakeLists.txt
- index 8a4f1d48..5f3e712d 100644
- --- a/CMakeLists.txt
- +++ b/CMakeLists.txt
- @@ -12,7 +12,8 @@ include( GNUInstallDirs )
- # use ccache
- find_program( CCACHE_FOUND ccache )
- -if( CCACHE_FOUND )
- +option( USE_CCACHE "Use ccache if found" ON )
- +if( USE_CCACHE AND CCACHE_FOUND )
- message( STATUS "ccache found. using it." )
- set_property( GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache )
- set_property( GLOBAL PROPERTY RULE_LAUNCH_LINK ccache )
- --
- 2.22.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement