Closed
[Bug-Report|缺陷反馈]: 执行ut用例时 ,出现gtest别名冲突 #4186
chenglongyuAdd on Aug 7Closed at Aug 11
Aug 7 Added label: bug-report
chenyifan
Aug 7 Comments:
Aug 7 Comments:
/assign @mutex_lock


Aug 7 Assign mutex_lock as responsible person
Aug 7 Associated pull request
Aug 11 Close issue
Aug 11 Added label: resolved
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
执行ut用例时 ,出现gtest别名冲突

Environment / 环境信息 (Mandatory / 必填)
950,cmake版本3.28.1
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
bash build.sh -u --ops=quant_block_sparse_attn --soc=ascend950 --experimental --cov
Describe the expected behavior / 预期结果 (Mandatory / 必填)
ut 执行正常
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
在 ut.cmake 575行,if (TARGET GTest::gtest) 改为 if (NOT TARGET GTest::gtest),可以正常执行。
或者把要求的cmake版本设置比较低,也可以执行。
Special notes for this issue/备注 (Optional / 选填)