This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
CppPatterns/cmake/sccache.cmake

7 lines
147 B
CMake

find_program(SCCACHE_FOUND sccache)
if(SCCACHE_FOUND)
set(CMAKE_C_COMPILER_LAUNCHER sccache)
set(CMAKE_CXX_COMPILER_LAUNCHER sccache)
endif()