Skip to content

Commit

Permalink
The VisualD project generator sets the working directory. Fixes #567.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Sep 15, 2015
1 parent 8963a11 commit 6e59c69
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/dub/generators/visuald.d
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,10 @@ class VisualDGenerator : ProjectGenerator {
ret.put(" <libpaths />\n");
ret.put(" <deffile />\n");
ret.put(" <resfile />\n");
ret.put(" <debugworkingdir>..</debugworkingdir>\n");
auto wdir = Path(buildsettings.workingDirectory);
if (!wdir.absolute) wdir = m_project.rootPackage.path ~ wdir;
ret.formattedWrite(" <debugworkingdir>%s</debugworkingdir>\n",
wdir.relativeTo(project_file_dir).toNativeString());
ret.put(" <preBuildCommand />\n");
ret.put(" <postBuildCommand />\n");
ret.put(" <filesToClean>*.obj;*.cmd;*.build;*.dep</filesToClean>\n");
Expand Down

0 comments on commit 6e59c69

Please sign in to comment.