opensubdiv: fix compilation with CUDA support

This commit is contained in:
Nikolay Amiantov 2018-02-25 20:06:29 +03:00
parent a10c91d5ae
commit 641d6bf4e6

@ -30,7 +30,10 @@ stdenv.mkDerivation rec {
"-DNO_EXAMPLES=1"
"-DGLEW_INCLUDE_DIR=${glew.dev}/include"
"-DGLEW_LIBRARY=${glew.dev}/lib"
] ++ lib.optional cudaSupport "-DOSD_CUDA_NVCC_FLAGS=--gpu-architecture=compute_30";
] ++ lib.optionals cudaSupport [
"-DOSD_CUDA_NVCC_FLAGS=--gpu-architecture=compute_30"
"-DCUDA_HOST_COMPILER=${cudatoolkit.cc}/bin/cc"
];
enableParallelBuilding = true;