1. 程式人生 > >在cmake中使用ccache

在cmake中使用ccache

g++ c++ compiler make compile cmake set 代碼 使用

對於C代碼:

SET(CMAKE_C_COMPILER "ccache")
SET(CMAKE_C_COMPILER_ARG1 "gcc")

對於C++代碼:

SET(CMAKE_CXX_COMPILER "ccache")
SET(CMAKE_CXX_COMPILER_ARG1 "g++")

在cmake中使用ccache