diff --git a/scripts/build_windows.bat b/scripts/build_windows.bat index 281d20a8d6926a..ea605c2cfc57d8 100644 --- a/scripts/build_windows.bat +++ b/scripts/build_windows.bat @@ -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 ) @@ -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% ^