未验证 提交 b7a6e981 编写于 作者: Y YuanRisheng 提交者: GitHub

fix mac unittest bugs when use static phi (#54656)

上级 58ae8c7c
......@@ -168,7 +168,9 @@ if(${len} GREATER_EQUAL 1)
add_executable(${test_name} ${test_src})
target_link_libraries(${test_name} paddle_gtest_main_new)
target_link_libraries(${test_name} $<TARGET_LINKER_FILE:${paddle_lib}>)
target_link_libraries(${test_name} $<TARGET_LINKER_FILE:phi>)
if(WITH_SHARED_PHI)
target_link_libraries(${test_name} $<TARGET_LINKER_FILE:phi>)
endif()
add_dependencies(${test_name} ${paddle_lib} paddle_gtest_main_new)
if(WITH_GPU)
target_link_libraries(${test_name} ${CUDA_CUDART_LIBRARY}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册