mirror of
https://github.com/monero-project/monero.git
synced 2026-07-30 23:50:24 -07:00
Made ccache optional (opt out) and tidied up the FindCcache.cmake
This commit is contained in:
+6
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user