!44078 optimize cropper NLOHMANN header

Merge pull request !44078 from yeyunpeng2020/master_cropper
This commit is contained in:
i-robot 2022-10-19 08:24:56 +00:00 committed by Gitee
commit 9e2082ec00
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 11 additions and 0 deletions

View File

@ -32,6 +32,16 @@ else
echo "FLATBUFFERS path is ${FLATBUFFERS}"
fi
if [ ${MSLIBS_CACHE_PATH} ]; then
NLOHMANN_LIST=()
while IFS='' read -r line; do NLOHMANN_LIST+=("$line"); done < <(ls -d ${MSLIBS_CACHE_PATH}/nlohmann_*/include)
NLOHMANN=${NLOHMANN_LIST[0]}
echo "NLOHMANN path is ${NLOHMANN}"
else
NLOHMANN=$(ls -d mindspore/lite/build/.mslib/nlohmann_*/include)
echo "NLOHMANN path is ${NLOHMANN}"
fi
HEADER_LOCATION="-I${MINDSPORE_HOME}
-I${MINDSPORE_HOME}/mindspore/core
-I${MINDSPORE_HOME}/mindspore/core/ir
@ -46,6 +56,7 @@ HEADER_LOCATION="-I${MINDSPORE_HOME}
-I${MINDSPORE_HOME}/mindspore/lite/build
-I${MINDSPORE_HOME}/cmake/../third_party/securec/include
-I${FLATBUFFERS}
-I${NLOHMANN}
-I${MINDSPORE_HOME}/mindspore/lite/build/schema
-I${MINDSPORE_HOME}/mindspore/lite/build/schema/inner
-I${MINDSPORE_HOME}/mindspore/lite/build/src