Builds should work from non-root directories
authorMatt Mitchell <mmitche@microsoft.com>
Mon, 2 Feb 2015 21:56:58 +0000 (13:56 -0800)
committerMatt Mitchell <mmitche@microsoft.com>
Mon, 2 Feb 2015 21:56:58 +0000 (13:56 -0800)
build.cmd

index 4e169ab..a8c6e91 100644 (file)
--- a/build.cmd
+++ b/build.cmd
@@ -6,7 +6,7 @@ set __BuildArch=x64
 set __BuildType=debug
 
 :: Set the various build properties here so that CMake and MSBuild can pick them up
-set __ProjectDir=%CD%
+set __ProjectDir=%~dp0
 set __ProjectFilesDir=%~dp0
 set __SourceDir=%__ProjectDir%\src
 set __PackagesDir=%__SourceDir%\.nuget