Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Junczys-Dowmunt <junczys@amu.edu.pl>2018-12-12 02:01:50 +0300
committerMarcin Junczys-Dowmunt <junczys@amu.edu.pl>2018-12-12 02:01:50 +0300
commitfc490bba030240ab9495cb07e5cb837facd4d28f (patch)
treeff2ee8bb1347b2e48be99eafff37e616dc08d0da
parentb44195c33d793c63725888fe991f3abba48e1935 (diff)
google protobuf from cmake
-rw-r--r--vs/CheckDeps.bat18
1 files changed, 12 insertions, 6 deletions
diff --git a/vs/CheckDeps.bat b/vs/CheckDeps.bat
index 087a8b0e..4af2aa93 100644
--- a/vs/CheckDeps.bat
+++ b/vs/CheckDeps.bat
@@ -236,12 +236,18 @@ REM exit /b 1
echo Found OpenSSL library in "%OPENSSL_ROOT_DIR%"
-%VCPKG% install protobuf protobuf:x64-windows
-echo %VCPKG%
-echo %VCPKG_INSTALL%
-md %VCPKG_INSTALL%\bin
-copy %VCPKG_INSTALL%\tools\protobuf\protoc.exe %VCPKG_INSTALL%\bin\protoc.exe
-set CMAKE_PREFIX_PATH=%VCPKG_INSTALL%
+set _CL_=/utf-8
+set LIBRARY_PATH=%CURRENT_PATH%\deps\proto
+
+mkdir build
+cd build
+git clone https://github.com/protocolbuffers/protobuf
+cd protobuf
+git checkout v.3.6.1
+cd cmake
+cmake . -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=%LIBRARY_PATH%
+cmake --build . --config Release --target install
+cd ..\..\..
echo.
echo.