Sha256: 64b8cd43f5f82ffe49c069dc793af74c4ed3891d461ae94c3bbee200d7d12925

Contents?: true

Size: 808 Bytes

Versions: 23

Compression:

Stored size: 808 Bytes

Contents

option(ENABLE_CACHE "Enable cache if available" ON)
if(NOT ENABLE_CACHE)
  return()
endif()

set(CACHE_OPTION
    "ccache"
    CACHE STRING "Compiler cache to be used")
set(CACHE_OPTION_VALUES "ccache" "sccache")
set_property(CACHE CACHE_OPTION PROPERTY STRINGS ${CACHE_OPTION_VALUES})
list(
  FIND
  CACHE_OPTION_VALUES
  ${CACHE_OPTION}
  CACHE_OPTION_INDEX)

if(${CACHE_OPTION_INDEX} EQUAL -1)
  message(
    STATUS
      "Using custom compiler cache system: '${CACHE_OPTION}', explicitly supported entries are ${CACHE_OPTION_VALUES}")
endif()

find_program(CACHE_BINARY ${CACHE_OPTION})
if(CACHE_BINARY)
  message(STATUS "${CACHE_OPTION} found and enabled")
  set(CMAKE_CXX_COMPILER_LAUNCHER ${CACHE_BINARY})
else()
  message(WARNING "${CACHE_OPTION} is enabled but was not found. Not using it")
endif()

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
couchbase-3.5.5 ext/couchbase/cmake/Cache.cmake
couchbase-3.5.4 ext/couchbase/cmake/Cache.cmake
couchbase-3.5.3 ext/couchbase/cmake/Cache.cmake
couchbase-3.5.2 ext/couchbase/cmake/Cache.cmake
couchbase-3.5.1 ext/couchbase/cmake/Cache.cmake
couchbase-3.5.0 ext/couchbase/cmake/Cache.cmake
couchbase-3.4.5 ext/couchbase/cmake/Cache.cmake
couchbase-3.4.4 ext/couchbase/cmake/Cache.cmake
couchbase-3.4.3 ext/couchbase/cmake/Cache.cmake
couchbase-3.4.2 ext/couchbase/cmake/Cache.cmake
couchbase-3.4.1 ext/couchbase/cmake/Cache.cmake
couchbase-3.4.0 ext/couchbase/cmake/Cache.cmake
couchbase-3.3.0 ext/couchbase/cmake/Cache.cmake
couchbase-3.2.0-universal-darwin-20 ext/cmake/Cache.cmake
couchbase-3.2.0 ext/cmake/Cache.cmake
couchbase-3.1.1 ext/cmake/Cache.cmake
couchbase-3.1.1-universal-darwin-20 ext/cmake/Cache.cmake
couchbase-3.1.0 ext/cmake/Cache.cmake
couchbase-3.0.3 ext/cmake/Cache.cmake
couchbase-3.0.3-universal-darwin-20 ext/cmake/Cache.cmake