Browse Source

modify dataset & mindrecord log compile

tags/v0.2.0-alpha
panfengfeng 5 years ago
parent
commit
6328edf455
2 changed files with 12 additions and 2 deletions
  1. +6
    -2
      mindspore/ccsrc/dataset/CMakeLists.txt
  2. +6
    -0
      mindspore/ccsrc/mindrecord/CMakeLists.txt

+ 6
- 2
mindspore/ccsrc/dataset/CMakeLists.txt View File

@@ -71,7 +71,6 @@ else ()
add_library(_c_dataengine SHARED ${submodules})
endif ()


set_target_properties(_c_dataengine PROPERTIES
PREFIX "${PYTHON_MODULE_PREFIX}"
SUFFIX "${PYTHON_MODULE_EXTENSION}"
@@ -110,5 +109,10 @@ endif()

if (USE_GLOG)
target_link_libraries(_c_dataengine PRIVATE mindspore::glog)
else()
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
target_link_options(_c_dataengine PRIVATE -Wl,-init,mindspore_log_init)
elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin")
set_target_properties(_c_dataengine PROPERTIES MACOSX_RPATH ON)
endif ()
endif()


+ 6
- 0
mindspore/ccsrc/mindrecord/CMakeLists.txt View File

@@ -34,4 +34,10 @@ endif()

if (USE_GLOG)
target_link_libraries(_c_mindrecord PRIVATE mindspore::glog)
else()
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
target_link_options(_c_mindrecord PRIVATE -Wl,-init,mindspore_log_init)
elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin")
set_target_properties(_c_mindrecord PROPERTIES MACOSX_RPATH ON)
endif ()
endif()

Loading…
Cancel
Save