How to Use CCache with CMake? December 24, 2022 by Tarik As of CMAKE 3.4 you can do: -DCMAKE_CXX_COMPILER_LAUNCHER=ccache