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


Loading…
Cancel
Save