dfhack icon indicating copy to clipboard operation
dfhack copied to clipboard

set debug command and working directory in vs solution

Open ab9rf opened this issue 2 years ago • 2 comments

it would be helpful to have the solution created by cmake set the project debug command to $DF_PATH\Dwarf Fortress.exe and debug working directory to $DF_PATH, since this facilitates debugging DF/DFHack directly from visual studio. as it is, i have to manually update this whenever i regenerate a clean build tree, which is slightly annoying

ab9rf avatar Jan 17 '23 13:01 ab9rf

i dug around this for a while, it seems i can set these properties on any of the specifically defined targets (like, say, dfhack) but setting in on ALL_BUILD (which is the target vs uses for launching the debugger) is not possible in cmake without modifying cmake itself. bleah

will keep digging

ab9rf avatar Jan 17 '23 16:01 ab9rf

it looks like changing the startup project to be dfhack instead of ALL_BUILD (the default) will accomplish the desired result, but there may be other consequences to doing this

ab9rf avatar Jan 17 '23 18:01 ab9rf