Browse Source

Ensure VS tools are in PATH for windows builds

Matt Benic 10 years ago
parent
commit
902e01c7a9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Rakefile

+ 4 - 0
Rakefile

@@ -58,6 +58,10 @@ namespace :build  do
     end
 
     Dir.chdir(CMAKE_WINDOWS_BUILD_FOLDER) do
+      # ensure VS commandline tools are on the path
+      VSCOMNTOOLS = ENV['VS140COMNTOOLS']
+
+      sh "\"#{VSCOMNTOOLS}vsvars32.bat\""
 
       sh "cmake ../../ -G \"Visual Studio 14 2015\""