Created by: zhouwei25
Added cache third_party source code compilation method, if cmake in -DWITH_TP_CACHE=ON, the source code of third_party will be saved in cache dir to avoid repeated downloads.
In this way, the user can achieve:
-
- Increase the stability of compilation, especially when Git or Proxy server is not stable;
-
- Speed up compilation.
In addition, when -DWITH_TP_CACHE=ON, GIt repo/URL and GIt tag/branch/commit wille be verified for cached-code. So, the wrong cache will be abandoned.