Skip to content

Commit

Permalink
CMAKE_GENERATOR workaround for vs2019 from conda-forge
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Feb 18, 2021
1 parent 15fe1bf commit 66f583e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recipe/build-lib.bat
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ if "%cuda_compiler_version%"=="None" (
echo Set up extra cmake-args: CUDA_CONFIG_ARGS=!CUDA_CONFIG_ARGS!
)

:: workaround for https://github.com/conda-forge/vc-feedstock/issues/21
set "CMAKE_GENERATOR=Visual Studio 16 2019"

:: Build vanilla faiss.dll (no avx2)
cmake -B _build_generic ^
-DBUILD_SHARED_LIBS=ON ^
Expand Down
3 changes: 3 additions & 0 deletions recipe/build-pkg.bat
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ if "%cuda_compiler_version%"=="None" (
set "CUDAToolkit_ROOT=%CUDA_PATH%"
)

:: workaround for https://github.com/conda-forge/vc-feedstock/issues/21
set "CMAKE_GENERATOR=Visual Studio 16 2019"

:: Build vanilla version (no avx2), see build-lib.bat
cmake -B _build_python_generic ^
-Dfaiss_ROOT=%PREFIX% ^
Expand Down

0 comments on commit 66f583e

Please sign in to comment.