mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-12 11:19:08 -05:00
Compare commits
2 commits
3bcc81f9c9
...
e5939116fb
Author | SHA1 | Date | |
---|---|---|---|
![]() |
e5939116fb | ||
![]() |
aeb3977db5 |
1 changed files with 6 additions and 3 deletions
|
@ -2,7 +2,9 @@
|
||||||
# Distributed under the MIT software license, see the accompanying
|
# Distributed under the MIT software license, see the accompanying
|
||||||
# file COPYING or https://opensource.org/license/mit/.
|
# file COPYING or https://opensource.org/license/mit/.
|
||||||
|
|
||||||
if(NOT MSVC)
|
# The <LANG>_COMPILER_LAUNCHER target property, used to integrate
|
||||||
|
# Ccache, is supported only by the Makefiles and Ninja generators.
|
||||||
|
if(CMAKE_GENERATOR MATCHES "Make|Ninja")
|
||||||
find_program(CCACHE_EXECUTABLE ccache)
|
find_program(CCACHE_EXECUTABLE ccache)
|
||||||
if(CCACHE_EXECUTABLE)
|
if(CCACHE_EXECUTABLE)
|
||||||
execute_process(
|
execute_process(
|
||||||
|
@ -17,8 +19,9 @@ if(NOT MSVC)
|
||||||
)
|
)
|
||||||
set(WITH_CCACHE ON)
|
set(WITH_CCACHE ON)
|
||||||
elseif(WITH_CCACHE)
|
elseif(WITH_CCACHE)
|
||||||
list(APPEND CMAKE_C_COMPILER_LAUNCHER ${CCACHE_EXECUTABLE})
|
foreach(lang IN ITEMS C CXX OBJCXX)
|
||||||
list(APPEND CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE_EXECUTABLE})
|
list(APPEND CMAKE_${lang}_COMPILER_LAUNCHER ${CMAKE_COMMAND} -E env CCACHE_NOHASHDIR=1 ${CCACHE_EXECUTABLE})
|
||||||
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
set(WITH_CCACHE OFF)
|
set(WITH_CCACHE OFF)
|
||||||
|
|
Loading…
Add table
Reference in a new issue