As of CMAKE 3.4 you can do:
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
More Related Contents:
- CMake error at CMakeLists.txt:30 (project): No CMAKE_C_COMPILER could be found
- CMake: How to set up source, library and CMakeLists.txt dependencies?
- Modern way to set compiler flags in cross-platform cmake project
- OS specific instructions in CMAKE: How to?
- How do I add a library path in cmake?
- Change default value of CMAKE_CXX_FLAGS_DEBUG and friends in CMake
- CMake output/build directory
- CMake linking against shared library on windows: error about not finding .lib file
- CPack: Exclude INSTALL commands from subdirectory (googletest directory)
- How do I use CMake?
- CMake does not find Visual C++ compiler
- CMake ExternalProject_Add() and FindPackage()
- How to enable C++11 in CLion?
- In CMake, how can I test if the compiler is Clang?
- How to set breakpoints on future shared libraries with a command flag
- CMake – remove a compile flag for a single translation unit
- How to set Visual Studio Filters for nested sub directory using cmake
- /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version CXXABI_1.3.8′ not found
- Is there an equivalent to WinAPI’s MAX_PATH under linux/unix?
- CMake Error: “add_subdirectory not given a binary directory”
- Why is CMake designed so that it removes runtime path when installing
- C++: how to get fprintf results as a std::string w/o sprintf
- CMake: Project structure with unit tests
- rc.exe no longer found in VS 2015 Command Prompt
- CMake and MsVS-NuGet
- How to get CMake to recognize pthread on Ubuntu?
- Cmake link library target link error
- OpenCV GTK+2.x error – “Unspecified error (The function is not implemented…)”
- CMake imported library behaviour
- Optimal lock file method