1:: Copyright (c) Facebook, Inc. and its affiliates.
2::
3:: This source code is licensed under the MIT license found in the
4:: LICENSE file in the root directory of this source tree.
5
6:: Build libfaiss.so.
7cmake -B _build ^
8      -T v141 ^
9      -A x64 ^
10      -G "Visual Studio 16 2019" ^
11      -DBUILD_SHARED_LIBS=ON ^
12      -DBUILD_TESTING=OFF ^
13      -DFAISS_ENABLE_GPU=OFF ^
14      -DFAISS_ENABLE_PYTHON=OFF ^
15      -DBLA_VENDOR=Intel10_64_dyn ^
16      .
17if %errorlevel% neq 0 exit /b %errorlevel%
18
19cmake --build _build --config Release -j %CPU_COUNT%
20if %errorlevel% neq 0 exit /b %errorlevel%
21
22cmake --install _build --config Release --prefix %PREFIX%
23if %errorlevel% neq 0 exit /b %errorlevel%
24