Commit 6c4ce7f2 authored by jerem's avatar jerem Committed by jeremad

make some linking public

we need this to make later versions of CUDA compile
parent 700276e5
...@@ -150,7 +150,7 @@ if(ANDROID) ...@@ -150,7 +150,7 @@ if(ANDROID)
else() else()
vs_lib_link_libraries("PUBLIC_CUDA" ${CUDART} ${CUDA_LIBRARIES} ${NVTX}) vs_lib_link_libraries("PUBLIC_CUDA" ${CUDART} ${CUDA_LIBRARIES} ${NVTX})
vs_lib_link_libraries("CUDA" ${OpenGL} ${OPENGL_LIBRARIES} ${GLEW_LIBRARIES} ${GLEW}) vs_lib_link_libraries("CUDA" ${OpenGL} ${OPENGL_LIBRARIES} ${GLEW_LIBRARIES} ${GLEW})
vs_lib_link_libraries("CUDA" ${NVML}) vs_lib_link_libraries("PUBLIC_CUDA" ${NVML})
if(CMAKE_CROSSCOMPILING) if(CMAKE_CROSSCOMPILING)
# needed by ceres # needed by ceres
vs_lib_link_libraries("CUDA" -fopenmp) vs_lib_link_libraries("CUDA" -fopenmp)
...@@ -159,7 +159,7 @@ else() ...@@ -159,7 +159,7 @@ else()
if(APPLE) if(APPLE)
vs_lib_link_libraries("CUDA" "-Wl,-F/Library/Frameworks -weak_framework CUDA") vs_lib_link_libraries("CUDA" "-Wl,-F/Library/Frameworks -weak_framework CUDA")
else() else()
vs_lib_link_libraries("CUDA" ${CUDA}) vs_lib_link_libraries("PUBLIC_CUDA" ${CUDA})
endif() endif()
endif(ANDROID) endif(ANDROID)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment