In Cmake post build , if i run output of same project build is failng in macos

In Post build , if i execute/ run same project output getting no process exist error in macos using xcode

Observation:

Same is working in windows

If you’re running an executable with options you may need to wrap the add_test(... COMMAND $<TARGET_FILE:mytarg> arg1)