GUnit icon indicating copy to clipboard operation
GUnit copied to clipboard

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

Open kiddy818 opened this issue 2 years ago • 1 comments

“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 avatar May 20 '22 02:05 kiddy818

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' 不是内部或外部命令,也不是可运行的程序

kiddy818 avatar May 20 '22 02:05 kiddy818