r21505 by craig - #13516: Apply patch for adding ccache, but add WANT_CCACHE CMake option

scribus-commit scribus-commit at lists.scribus.net
Fri Nov 11 22:14:33 UTC 2016


Author: craig
Date: Fri Nov 11 22:14:33 2016
New Revision: 21505

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21505
Log:
#13516: Apply patch for adding ccache, but add WANT_CCACHE CMake option

Modified:
    trunk/Scribus/CMakeLists.txt

Modified: trunk/Scribus/CMakeLists.txt
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21505&path=/trunk/Scribus/CMakeLists.txt
==============================================================================
--- trunk/Scribus/CMakeLists.txt	(original)
+++ trunk/Scribus/CMakeLists.txt	Fri Nov 11 22:14:33 2016
@@ -6,6 +6,17 @@
 #Require 3.1.0 for Qt 5.7 C++ 11 easy support
 #Require 3.2.0 for add_custom_target with byproducts
 CMAKE_MINIMUM_REQUIRED(VERSION 3.2.0 FATAL_ERROR)
+
+
+# Configure CCache if available and wanted
+IF (WANT_CCACHE)
+    FIND_PROGRAM(CCACHE_FOUND ccache)
+	if(CCACHE_FOUND)
+		MESSAGE(STATUS "Enabling ccache")
+		SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
+		SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
+	ENDIF(CCACHE_FOUND)
+ENDIF (WANT_CCACHE)
 
 #Pretty colors
 SET(CMAKE_COLOR_MAKEFILE ON)




More information about the scribus-commit mailing list