Skip to content

Commit

Permalink
Support building binary on windows machines
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: pytorch#13059

Reviewed By: llyfacebook

Differential Revision: D10560147

Pulled By: sf-wind

fbshipit-source-id: c8f38b30c9acdf6ae494e56a5876fd4493696e5d
  • Loading branch information
sf-wind authored and facebook-github-bot committed Oct 24, 2018
1 parent 8355219 commit fcf801f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/build_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ setlocal
SET ORIGINAL_DIR=%cd%
SET CAFFE2_ROOT=%~dp0%..

if NOT DEFINED BUILD_BINARY (
set BUILD_BINARY=OFF
)

if NOT DEFINED CAFFE2_STATIC_LINK_CUDA (
set CAFFE2_STATIC_LINK_CUDA=OFF
)
Expand Down Expand Up @@ -60,6 +64,7 @@ cd %CAFFE2_ROOT%\build
cmake .. ^
-G%CMAKE_GENERATOR% ^
-DBUILD_TEST=OFF ^
-DBUILD_BINARY=%BUILD_BINARY% ^
-DCMAKE_BUILD_TYPE=%CMAKE_BUILD_TYPE% ^
-DCAFFE2_STATIC_LINK_CUDA=%CAFFE2_STATIC_LINK_CUDA% ^
-DUSE_CUDA=%USE_CUDA% ^
Expand Down

0 comments on commit fcf801f

Please sign in to comment.