I’d like to write something of the form
set(CMAKE_VS_DEBUGGER_WORKING_DIRECTORY "$<TARGET_FILE_DIR:$<some genex to get the name of the target this ends up applying to>>")
so that each target’s value of VS_DEBUGGER_WORKING_DIRECTORY
ends up being the directory the binary ends up in, without needing to manually set the property on every target.
However, I’ve not been able to find a generator expression to get the current target name for things that end up evaluated for a specific target.
Hopefully, this is easy, and I’m only struggling because Google’s dumber than it was ten or fifteen years ago.