From 8e8f56cbdc67fa0559f7205c3eafd92bc0aa7a24 Mon Sep 17 00:00:00 2001 From: simson <526422051@qq.com> Date: Thu, 16 Apr 2020 10:14:09 +0800 Subject: [PATCH] only link to glog when enable GE --- mindspore/ccsrc/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mindspore/ccsrc/CMakeLists.txt b/mindspore/ccsrc/CMakeLists.txt index 500972b0d..c99809f90 100644 --- a/mindspore/ccsrc/CMakeLists.txt +++ b/mindspore/ccsrc/CMakeLists.txt @@ -381,17 +381,19 @@ if (WIN32) securec proto_input mindspore::flatbuffers - mindspore::glog ) else() target_link_libraries(_c_expression PRIVATE mindspore::pybind11_module mindspore mindspore_gvar - mindspore::glog ) endif() +if(USE_GLOG) + target_link_libraries(_c_expression PRIVATE mindspore::glog) +endif() + if(ENABLE_GPU) execute_process(COMMAND bash ${CMAKE_SOURCE_DIR}/third_party/apply_patches.sh ${CMAKE_BINARY_DIR} -- GitLab