Skip to content
Snippets Groups Projects
Commit 79c81c10 authored by incardon's avatar incardon
Browse files

Fixing installation to work on OSX

parent 7cd19fd1
No related branches found
No related tags found
No related merge requests found
...@@ -57,8 +57,12 @@ AS_IF([test "x$NVCC_EXIST" = "xno"],[],[ ...@@ -57,8 +57,12 @@ AS_IF([test "x$NVCC_EXIST" = "xno"],[],[
# If $build_cpu contains "_64", append "64" to CUDA_LIBS # If $build_cpu contains "_64", append "64" to CUDA_LIBS
AS_IF([echo $build_cpu | grep -q "_64"], AS_IF([echo $build_cpu | grep -q "_64"],
[ [
AS_IF([ ! test -d {CUDA_LIBS}lib64 ], [ CUDA_LIBS+="64" ]) AS_IF([ test -d {CUDA_LIBS}lib64 ], [ CUDA_LIBS+="64" ])
AS_IF([ ! command -v bumblebee >/dev/null ], [ CUDA_LIBS+=" -L/usr/lib64/nvidia-bumblebee/ " ]) AS_IF([ command -v bumblebee >/dev/null ], [ CUDA_LIBS+=" -L/usr/lib64/nvidia-bumblebee/ " ])
AS_IF([ test -d /usr/local/cuda/lib64 ], [ CUDA_LIBS+=" -L/usr/local/cuda/lib64 " ],
[
AS_IF([ test -d /usr/local/cuda/lib ],[ CUDA_LIBS+=" -L/usr/local/cuda/lib " ])
])
]) ])
# Append " -lcuda -lcudart" to CUDA_LIBS # Append " -lcuda -lcudart" to CUDA_LIBS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment