mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
49c98bbc34
EthCcache module taken from cpp-ethereum.
16 lines
506 B
CMake
16 lines
506 B
CMake
# Setup ccache.
|
|
#
|
|
# The ccache is auto-enabled if the tool is found.
|
|
# To disable set -DCCACHE=OFF option.
|
|
if(NOT DEFINED CMAKE_CXX_COMPILER_LAUNCHER)
|
|
find_program(CCACHE ccache DOC "ccache tool path; set to OFF to disable")
|
|
if(CCACHE)
|
|
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE})
|
|
if(COMMAND cotire)
|
|
# Change ccache config to meet cotire requirements.
|
|
set(ENV{CCACHE_SLOPPINESS} pch_defines,time_macros)
|
|
endif()
|
|
message(STATUS "[ccache] Enabled: ${CCACHE}")
|
|
endif()
|
|
endif()
|