projects
/
platform
/
upstream
/
jsoncpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
772f634
)
Support ccache
author
Christopher Dunn
<cdunn2001@gmail.com>
Mon, 19 Oct 2015 17:10:58 +0000
(12:10 -0500)
committer
Christopher Dunn
<cdunn2001@gmail.com>
Mon, 19 Oct 2015 17:10:58 +0000
(12:10 -0500)
http://stackoverflow.com/a/
24305849
/263998
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
7d459fd
..
2b3ab6e
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-104,6
+104,12
@@
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
# not yet ready for -Wsign-conversion
endif()
+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)
+
IF(JSONCPP_WITH_WARNING_AS_ERROR)
UseCompilationWarningAsError()
ENDIF()