Q-Max的雜談

2020年2月16日 星期日

use ccache to accelerate compiling time in CMake

CMake > 3.4.0
define
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
or add below in CMakeLists.txt
set(CMAKE_CXX_COMPILER_LAUNCHER ccache)
https://stackoverflow.com/a/37828605

make sure your ccache is latest to avoid bugs like

https://stackoverflow.com/a/47097937
張貼者: Q-Max 於 凌晨1:17 沒有留言:
以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook分享到 Pinterest
較新的文章 較舊的文章 首頁
訂閱: 文章 (Atom)

關於我自己

我的相片
Q-Max
檢視我的完整簡介

網誌存檔

  • ▼  2020 (2)
    • ►  3月 (1)
    • ▼  2月 (1)
      • use ccache to accelerate compiling time in CMake
  • ►  2019 (7)
    • ►  9月 (1)
    • ►  5月 (1)
    • ►  3月 (3)
    • ►  2月 (1)
    • ►  1月 (1)
  • ►  2018 (10)
    • ►  9月 (1)
    • ►  7月 (1)
    • ►  6月 (1)
    • ►  5月 (1)
    • ►  4月 (2)
    • ►  2月 (2)
    • ►  1月 (2)
  • ►  2017 (1)
    • ►  2月 (1)
  • ►  2016 (12)
    • ►  9月 (1)
    • ►  7月 (5)
    • ►  6月 (5)
    • ►  5月 (1)
  • ►  2015 (14)
    • ►  10月 (3)
    • ►  9月 (3)
    • ►  7月 (3)
    • ►  6月 (4)
    • ►  2月 (1)
  • ►  2014 (8)
    • ►  10月 (8)
簡單主題. 技術提供:Blogger.