提交 8e8f56cb 编写于 作者: S simson

only link to glog when enable GE

上级 58b013c3
...@@ -381,17 +381,19 @@ if (WIN32) ...@@ -381,17 +381,19 @@ if (WIN32)
securec securec
proto_input proto_input
mindspore::flatbuffers mindspore::flatbuffers
mindspore::glog
) )
else() else()
target_link_libraries(_c_expression PRIVATE target_link_libraries(_c_expression PRIVATE
mindspore::pybind11_module mindspore::pybind11_module
mindspore mindspore
mindspore_gvar mindspore_gvar
mindspore::glog
) )
endif() endif()
if(USE_GLOG)
target_link_libraries(_c_expression PRIVATE mindspore::glog)
endif()
if(ENABLE_GPU) if(ENABLE_GPU)
execute_process(COMMAND bash ${CMAKE_SOURCE_DIR}/third_party/apply_patches.sh execute_process(COMMAND bash ${CMAKE_SOURCE_DIR}/third_party/apply_patches.sh
${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册