diff --git a/CMakeLists.txt b/CMakeLists.txt index a82aba5c687bf42ea23ee2339c2554178100b7df..b0fe4f0276cdeb3540b39a4d545a151e606a9bc7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,12 @@ cmake_minimum_required(VERSION 3.2) project(VisualDL) +find_program(CCACHE_FOUND ccache) +if(CCACHE_FOUND) + set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache) + set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache) +endif(CCACHE_FOUND) + set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake") set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_FLAGS "-fPIC") diff --git a/visualdl/storage/storage.cc b/visualdl/storage/storage.cc index 9ed2e20e245d72aba003ce4074bb684c69e11a2f..2b88ad091a9810fb7473c12fa6daa4c2a214017b 100644 --- a/visualdl/storage/storage.cc +++ b/visualdl/storage/storage.cc @@ -1,9 +1,9 @@ #include -#include #include -#include "visualdl/backend/storage/storage.h" -#include "visualdl/backend/utils/filesystem.h" +#include "visualdl/storage/storage.h" +#include "visualdl/utils/concurrency.h" +#include "visualdl/utils/filesystem.h" namespace visualdl { diff --git a/visualdl/storage/storage_test.cc b/visualdl/storage/storage_test.cc index 91c2a59d47ed38f8f6a6eb5affc27305171bbf92..9ddf13a36153b8bbdb2b14ceabea7c79c971efbe 100644 --- a/visualdl/storage/storage_test.cc +++ b/visualdl/storage/storage_test.cc @@ -1,4 +1,4 @@ -#include "visualdl/backend/storage/storage.h" +#include "visualdl/storage/storage.h" #include #include