From 3a7541dabd2a2250db3729aa69b46da3931b6ad5 Mon Sep 17 00:00:00 2001 From: superjom Date: Tue, 12 Dec 2017 14:05:40 +0800 Subject: [PATCH] clean backend --- CMakeLists.txt | 6 ++++++ visualdl/storage/storage.cc | 6 +++--- visualdl/storage/storage_test.cc | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a82aba5c..b0fe4f02 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 9ed2e20e..2b88ad09 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 91c2a59d..9ddf13a3 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 -- GitLab