From ca52d7fbf6137b64520e502c3c686f7eab7adf30 Mon Sep 17 00:00:00 2001 From: zhaodezan Date: Tue, 25 Aug 2020 07:30:13 -0400 Subject: [PATCH] fix the error or warning file path can not show completely --- mindspore/lite/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/lite/CMakeLists.txt b/mindspore/lite/CMakeLists.txt index efc1012702..ffc7b374b7 100644 --- a/mindspore/lite/CMakeLists.txt +++ b/mindspore/lite/CMakeLists.txt @@ -31,7 +31,7 @@ endif() set(RUN_X86_COMPONENT_NAME runtime-x86-${PROCESS_UNIT}) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17") -set(TOP_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../..) +string(REPLACE "/mindspore/lite" "" TOP_DIR ${CMAKE_CURRENT_SOURCE_DIR}) set(CORE_DIR ${TOP_DIR}/mindspore/core) set(CCSRC_DIR ${TOP_DIR}/mindspore/ccsrc) include_directories(${TOP_DIR})