Browse Source

only link to glog when enable GE

tags/v0.2.0-alpha
simson 5 years ago
parent
commit
8e8f56cbdc
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      mindspore/ccsrc/CMakeLists.txt

+ 4
- 2
mindspore/ccsrc/CMakeLists.txt View File

@@ -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}


Loading…
Cancel
Save