Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error at root CMakeList.txt L:81 and Line:89 in test function #77

Open
kiddy818 opened this issue May 20, 2022 · 1 comment
Open

error at root CMakeList.txt L:81 and Line:89 in test function #77

kiddy818 opened this issue May 20, 2022 · 1 comment

Comments

@kiddy818
Copy link

“add_custom_command(TARGET ${out} COMMAND ${scenario} ./${out} --gtest_color=yes USES_TERMINAL)”
this is an error cmake configure,it should be
“add_custom_command(TARGET ${out} COMMAND ./${out} ${scenario} --gtest_color=yes USES_TERMINAL)”

the custom COMMAND should be "execute_file secnario=" not "secnario= execute_file"

@kiddy818
Copy link
Author

e, command "SCENARIO= test_execute_file" can not run at windows env.
when run in windows, the command should be "set SCENARIO= && test_execute_file"
so, this CMakeList.txt will be error at windows.
"cd /D D:\work\github\GUnit\build && SCENARIO= ./example_GMock --gtest_color=yes""
'SCENARIO' 不是内部或外部命令,也不是可运行的程序

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant