mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Add --ccache option to configure script (requires CMake 3.10+).
This just provides a convient way of indicating that ccache should be used as compiler-wrapper during builds. e.g. when I want dev/debug builds that (re)compile quickly, I do: ./configure --build-type=debug --generator=Ninja --ccache
This commit is contained in:
parent
577357d509
commit
f8f343fd3a
4 changed files with 22 additions and 1 deletions
|
@ -9,6 +9,18 @@ include(cmake/CommonCMakeConfig.cmake)
|
|||
########################################################################
|
||||
## Project/Build Configuration
|
||||
|
||||
if ( ENABLE_CCACHE )
|
||||
find_program(CCACHE_PROGRAM ccache)
|
||||
|
||||
if ( NOT CCACHE_PROGRAM )
|
||||
message(FATAL_ERROR "ccache not found")
|
||||
endif ()
|
||||
|
||||
message(STATUS "Using ccache: ${CCACHE_PROGRAM}")
|
||||
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE_PROGRAM})
|
||||
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE_PROGRAM})
|
||||
endif ()
|
||||
|
||||
set(BRO_ROOT_DIR ${CMAKE_INSTALL_PREFIX})
|
||||
if (NOT BRO_SCRIPT_INSTALL_PATH)
|
||||
# set the default Bro script installation path (user did not specify one)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue