You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
error at root CMakeList.txt L:81 and Line:89 in test function #77
“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"
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' 不是内部或外部命令,也不是可运行的程序
Activity
kiddy818 commentedon May 20, 2022
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' 不是内部或外部命令,也不是可运行的程序