How to get correct executable name on all platforms?

I created custom target to execute result of native build with ease. This works on linux/mac, but fails on Win, because ${PROGNAME} has no .exe on the end.

I don’t know, is it bug or feature, but could you explain expected right method to execute file, working on all platforms?

Maybe @ivankravets can help.

Hi! The most idiomatic way is to use the $PROGNAME$PROGSUFFIX combination.

1 Like

@valeros thank you very much! That’s exactly what i need.