]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: use CMAKE_<LANG>_COMPILER_LAUNCHER for configuring ccache 46846/head
authorKefu Chai <tchaikov@gmail.com>
Sat, 25 Jun 2022 14:27:02 +0000 (22:27 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sat, 25 Jun 2022 14:44:24 +0000 (22:44 +0800)
commite56e85b8912088f175021b9b7c7cc209fd75f2ba
tree319f2150d687179abd4ae4de1608365eb8bda751
parent04f00402d6d3a28ab452cb8b7f58b8a6ae0dfbab
cmake: use CMAKE_<LANG>_COMPILER_LAUNCHER for configuring ccache

ccache only works for c and c++, so instead of using the universal
`RULE_LAUNCH_COMPILE` use `CMAKE_<LANG>_COMPILER_LAUNCHER` instead,
so ccache is only configured for c and c++ compilation. this is a better
solution for integrating ccache into our building system.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
CMakeLists.txt