Made ccache optional (opt out) and tidied up the FindCcache.cmake

This commit is contained in:
mj-xmr 2020-05-04 09:46:31 +02:00 committed by wowario
parent 1b7b438337
commit 1b9226ecfb
No known key found for this signature in database
GPG key ID: 24DCBE762DE9C111
2 changed files with 15 additions and 7 deletions

View file

@ -48,7 +48,12 @@ message(STATUS "CMake version ${CMAKE_VERSION}")
project(monero)
include(FindCcache) # Has to be included after the project() macro, to be able to read the CXX variable.
option (USE_CCACHE "Use ccache if a usable instance is found" ON)
if (USE_CCACHE)
include(FindCcache) # Has to be included after the project() macro, to be able to read the CXX variable.
else()
message(STATUS "ccache deselected")
endif()
enable_language(C ASM)