Advertisement
Guest User

Untitled

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