We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93dfa8a commit e48bad5Copy full SHA for e48bad5
CMakeLists.txt
@@ -69,6 +69,13 @@ endif()
69
set(ENABLE_UPDATE_CHECKER (NOT ${DEVELOPMENT_BUILD}) CACHE BOOL
70
"Whether to enable update checks by default")
71
72
+find_program(CCACHE_FOUND ccache)
73
+if (CCACHE_FOUND)
74
+ set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
75
+ set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
76
+ set(ENV{CCACHE_SLOPPINESS} pch_defines,time_macros)
77
+endif ()
78
+
79
# Included stuff
80
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
81
0 commit comments