Closed
[Bug-Report|缺陷反馈]: 执行ut用例时 ,出现gtest别名冲突 #4186
chenglongyuAdd on  Aug 7Closed at  Aug 11
chenglongyu
chenglongyuCollaborators
Aug 7 Create

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

Describe the current behavior / 问题描述 (Mandatory / 必填)

执行ut用例时 ,出现gtest别名冲突
image.png

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 执行正常

在 ut.cmake 575行,if (TARGET GTest::gtest) 改为 if (NOT TARGET GTest::gtest),可以正常执行。
或者把要求的cmake版本设置比较低,也可以执行。

Special notes for this issue/备注 (Optional / 选填)

likedislike
chenglongyuchenglongyuCollaborators
Aug 7 Added label: bug-report
chenyifan
chenyifanCollaborators
Aug 7 Comments:

/assign @mutex_lock

likedislike
CANN-robotCANN-robotCollaborators
Aug 7 Assign mutex_lock as responsible person
chenyifanchenyifanCollaborators
Aug 7 Associated pull request
CANN-robotCANN-robotCollaborators
Aug 11 Close issue
CANN-robotCANN-robotCollaborators
Aug 11 Added label: resolved