Commit d4a1f165 authored by Jørgen Lien Sellæg's avatar Jørgen Lien Sellæg
Browse files

use ccache if it is installed to speed up development

parent 7d1e4955
Pipeline #252722229 passed with stages
in 16 minutes and 43 seconds
......@@ -14,6 +14,16 @@ set(CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
set(CPACK_DEBIAN_PACKAGE_DEPENDS "cmake, make, g++, libclang-dev, liblldb-dev, clang-format, pkg-config, libboost-system-dev, libboost-filesystem-dev, libboost-serialization-dev libgtksourceviewmm-3.0-dev, aspell-en, libaspell-dev, libgit2-dev, universal-ctags")
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://gitlab.com/cppit/jucipp")
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
  • Doesn't make/ninja have builtin ccache like functionality? Ccache only seems relevant if you need to do make clean for instance.

Please register or sign in to reply
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
message(STATUS "using ccache.")
else()
message(STATUS "ccache was not found.")
endif(CCACHE_FOUND)
include(CPack)
set(CMAKE_CXX_STANDARD 14)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment