提交 fb7d8d6c 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!50 update CMakeLists.txt of unittest_cpp to support MindSpore Build

Merge pull request !50 from LuoYin/unittest_ms
......@@ -14,4 +14,8 @@ file(
add_executable(unittest_main ${UT_CPP_SRC})
target_link_libraries(unittest_main gtest akg ${TVM_RUNTIME_LINKER_LIBS} ${CMAKE_DL_LIBS})
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
target_link_libraries(unittest_main PRIVATE gtest akg ${TVM_RUNTIME_LINKER_LIBS} pthread util dl)
else()
target_link_libraries(unittest_main PRIVATE gtest akg ${TVM_RUNTIME_LINKER_LIBS})
endif()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册